Home Forums Chart Support Trendline for scatter chart

Trendline for scatter chart

Viewing 2 posts - 1 through 2 (of 2 total)
  • #34830

    Do you have an example on how to add a 2nd order polynomial trendline with forecasting (forward and backward) to a scatter chart? You can see an example in excel here:

    https://easyupload.io/erzx82

    #34842

    @dunhamcd,

    As of now, CanvasJS doesn’t have the option to add equations / technical indicators as an inbuilt feature. However, you can generate datapoints as per the equation & add a spline dataseries to the chart with few lines of code. Please take a look at this JSFiddle for an example on the same.

    Chart with datapoints from the equation

    Also, you can check out this forum thread for more info on adding technical indicators (SMA & EMA).

    —-
    Manoj Mohan
    Team CanvasJS

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.