Never mind. I have wrongfully put ‘legendMarkerColor’ in datapoints, instead in data
I think thats not related to CanvasJS, but to your model in Laravel. How about accessor and mutator in Laravel? or convert using Carbon?
This package is soo great. I use scatter chart, and I just use leftjoin, and selectRaw with coloumname as color, and the chart automatically depict the colors. I dont have to modify my chart scripts. awesome!!