javascript - Angular NVD3: How to access the chart object defined in HTML -
i have defined multibar chart using <nvd3>
directive , passing data
, options
defined in controller:
<nvd3 options="vm.options" data="vm.data"></nvd3>
now want somehow access chart object created manipulations, example, obtain xaxis scaling function.
if chart defined within javascript have object:
var chart = nv.models.multibarchart() .stacked(false) .showcontrols(false); // , can these scaling functions var yvaluescale = chart.yaxis.scale(); var xvaluescale = chart.xaxis.scale();
is possible them if chart defined in html? in advance.
Comments
Post a Comment