Given:
- the chart on js is http://jsfiddle.net/ ;
- array in php with the number of articles for the year monthly - $ montharr;
How to transfer array values $ montharr ( php ) to data graph ( js )?
series: [{ name: 'Фішки', type: 'column', yAxis: 1, data: [15, 22, 20, 36, 55, 44, 48, 33, 61, 33, 44, 54], tooltip: { valueSuffix: ' шт' }
echo "'" . implode(', ' $montharr) . "'";
- E_p