Hello I am trying to make a scatterChart with the nvd3.js libary. Now the thing is that I want to have both axis the same width/height. But even if both the height and width in css as in code are set to the same height the y axis stays longer in height.
JS:
var chart = nv.models.scatterChart()
.width(300)
.height(300)
.showXAxis(true)
.showYAxis(true)
.forceX([-100,100])
.forceY([-100,100])
.tooltips(true)
.showLegend(false)
.tooltipContent(function(){
return 'clock';
});
css:
#main-chart {
width: 300px;
height: 300px;
margin: 0 auto;
}
html:
<div class="container" ng-controller="film_factor_controller">
<svg bubble-chart id="main-chart"></svg>
hope someone can help me out