Seeking assistance in updating my javascript chart data using ajax data retrieved from a database. The specific chart being referenced is an apex chart. After submitting a form via ajax, the returned result is as follows:
type: "POST",crossDomain: true, cache: false,
data: loginStringnew,
success: function(data2){
$("#appyrpen").html(data2);
Instead of displaying the result with $("#appyrpen").html(data2);
I aim to update a javascript chart code that resembles the following :
if($('#sales_chart').length>0){var
columnCtx=document.getElementById("sales_chart"),columnConfig={colors
['#0CE0FF','#1B5A90','#DFE5FC'],series:[{name:"Completed",type:"column",data:[4,2.8,5,2,3.2,1.2,2,3,2,3.5,5,2]}
The data element of the chart reads as: data:[4,2.8,5,2,3.2,1.2,2,3,2,3.5,5,2]} and my goal is to populate it with the success result obtained through ajax.
Your support is greatly appreciated.