JSCharts, improve label and tooltip values for larger data with PHP