amcharts / amcharts3

JavaScript Charts V3
Other
395 stars 129 forks source link

Does AmStockChart extends to AmChart #167

Open kevzlou7979 opened 6 years ago

kevzlou7979 commented 6 years ago

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

martynasma commented 6 years ago

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 :)

kevzlou7979 commented 6 years ago

Ok thanks for the feedback :)