Home forums Using CanvasJS Formatting th date for the datapoint Reply To: Formatting th date for the datapoint

#24607

@viiartz,

jQuery.getJSON is asynchronous method due to which your chart gets rendered before the array arr_data gets populated. Hence by performing jQuery.getJSON() method inside jQuery.when() method and then calling chart.render() inside the .then() method will work fine in your case as shown in this JSFiddle.

____
Shashi Ranjan
Team CanvasJS