This topic is locked
[SOLVED]

 chart legend with value

6/26/2017 10:42:16 PM
PHPRunner General questions
F
firecloud author

Im looking to implement something like this link bellow.

https://playground.anychart.com/docs/7.14.0/samples/STOCK_Legend_01-plain
what im trying so far.

var firstPlot = chart.plot(0);

var legend = firstPlot.legend();

legend.enabled(true);

// making the legend vertical

legend.itemsLayout('vertical');

// setting the space between the items

legend.itemsSpacing(1);


got error bellow

RunnerAll.js:71 Uncaught TypeError: anychart.plot is not a function

at constructor.Runner.Charts.chartModifyHandlers.rthm_Chart (RunnerAll.js:71)

at Object.setupChart (RunnerAll.js:62)

at Object.success (RunnerAll.js:55)

at j (loadfirst.js:1)

at Object.fireWith [as resolveWith] (loadfirst.js:1)

at x (loadfirst.js:1)

at XMLHttpRequest.b (loadfirst.js:1)


Sergey Kornilov admin 6/27/2017

I guess you missing this:

// create stock chart

chart = anychart.stock();
F
firecloud author 7/1/2017



I guess you missing this:

// create stock chart

chart = anychart.stock();




thanks, still catch another error.

b>Fatal error</b>: Call to undefined method Chart_Line::query() in <b>D:\2017b\classes\charts.php</b> on line <b>782</b><br />