Search code examples
anychart

Getting Data from JSON with anystock


Based on anychart doc, it is very straight forward to load data :

var json = { "chart": { "type": "pie" }}
anychart.fromJson(json);

Now I am trying to do the same with anystock... but cannot figure out how:

var json = { "chart": { "type": "stock" }}
anychart.fromJson(json);

I have the error below :

Unknown chart type: stock

I guess it is because anychart and anystock are 2 different products, but I cannot figure out what should be the correct configuration.


Solution

  • I just got an answer from anychart :

    unfortunately AnyStock 8.0.1 of October 2017 doesn't provide this feature. However in future releases this feature might be implemented.