Home Forums Chart Support Replace Xcelsius Reply To: Replace Xcelsius



You can generate the dataPoints(x and y-values) based on your formula and render the chart using same. Please check out the below code snippet for generating chart dataPoints using formula –

for (var j = 0; j < dataLength; j++) { 
  xVal = j;
  yVal = Math.pow(xVal,2) +  1;
    x: xVal,
    y: yVal

Please take a look at this JSFiddle for a working example.

Chart with dataPoints from equation

Indranil Deo
Team CanvasJS