angular2-nvd3 icon indicating copy to clipboard operation
angular2-nvd3 copied to clipboard

Access to the chart object

Open Zefling opened this issue 8 years ago • 0 comments

Currently, it's possible to get the chart object with this method, to ignore the private access.

let char = <LineChart>(this.nvD3['ngNvD3']['chart']);
let x    = chart.xAxis.scale()(current);

Is it possible tout add a getter like this?

let char = this.nvD3.getChart<LineChart>();
let x    = chart.xAxis.scale()(current);

Zefling avatar May 15 '17 13:05 Zefling