amcharts3 icon indicating copy to clipboard operation
amcharts3 copied to clipboard

Does AmStockChart extends to AmChart

Open kevzlou7979 opened this issue 6 years ago • 2 comments

Hi there,

I just noticed that on the documentation there's no write(id) api on AmStockChart (Refer to https://docs.amcharts.com/3/javascriptstockchart/AmStockChart) But on the current getting started guide I just noticed that you've used the chart.write("chartDiv") (Refer to https://www.amcharts.com/kbase/your-first-stock-chart/) in order to create your chart. So in conclusion do we need to extend AmStockChart to AmChart to access those base api i.e write(id) or AmStockChart is missing that api.

Best Regards, Mark

kevzlou7979 avatar Feb 07 '18 03:02 kevzlou7979

Hi Mark,

The documentation for V3 is managed manually, and not generated from code. So it may contain some errors, or have something missing.

AmStockChart cannot extend AmChart. StockPanel do extend AmChart.

We'll update the documentation. Thanks for catching this.

Meanwhile, just rest assured that it's OK to use write() on a Stock Chart :)

martynasma avatar Feb 07 '18 06:02 martynasma

Ok thanks for the feedback :)

kevzlou7979 avatar Feb 07 '18 06:02 kevzlou7979