I have defined a multibar chart using the <nvd3>
directive and passing the data
and options
to it defined in my controller:
<nvd3 options="vm.options" data="vm.data"></nvd3>
Now I want to somehow access the chart object created to do some manipulations, for example, to obtain the xAxis scaling function.
If the chart is defined within JavaScript I have that object:
var chart = nv.models.multiBarChart()
.stacked(false)
.showControls(false);
// and I can get these scaling functions
var yValueScale = chart.yAxis.scale();
var xValueScale = chart.xAxis.scale();
Is it possible to also get them if the chart is defined in HTML? Thanks in advance.