Home forums Using CanvasJS Average line on line chart

This topic contains 3 replies, has 4 voices, and was last updated by  Suyash Singh 10 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #7226

    zachary
    Participant

    I’m trying to add an average line which is an average of all the other lines on a chart, and while I could do this server side, I was wondering if there was an easy way to do this in canvasjs. This is my current chart http://jsfiddle.net/txcsLgad/1/

    • This topic was modified 4 years, 1 month ago by  zachary.
    #7384

    Sunil Urs
    Keymaster

    There is no way to do this automatically. Best option is to calculate the averages either on the server (or client side) and adding it to the chart.


    Sunil Urs

    #18860

    nisha
    Member

    Hello Sir,

    I need to make moving average for a week with column and bar chart. Data should show in Column chart and moving average of two points for 7 days data should be by line chart on bar chart. Please HELP by giving a example.

    Regards

    #18878

    Suyash Singh
    Participant

    @nisha,

    Please have a look at this jsfiddle on Column Chart with 7 Day Simple Moving Average.
    ___
    Suyash Singh
    Team CanvasJS

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

You must be logged in to reply to this topic.