General developer forum

Getting Error in moodle chart api

 
Picture of Farhan Karmali
Re: Getting Error in moodle chart api
Core developersPlugin developersTesters

Hi Santosh 

Your series should be in this format 

$series2 = new \core\chart_series('Series 2 (Line)', [400, 460, 1120, 540]);

Please see this for more information 

https://docs.moodle.org/dev/Charts_API

 
Average of ratings: -