Home Forums Chart Support Average Line

Average Line

Viewing 4 posts - 1 through 4 (of 4 total)
  • #31248

    Hi there im currently trying to use https://canvasjs.com/javascript-charts/chart-axis-scale-break/ to achieve this What i want to achieve Is there any way i can ahieve this kind of average line where i can set the point and customized the thickness ?

    #31289

    @isysedge,

    You can use stripLine to show average as a horizontal line. Please take a look at this gallery page for an example on the same.

    ___________
    Indranil Deo
    Team CanvasJS

    #31293

    Hi there @indranil
    Thankyou for responding to my post , Like i said in the picture above i need help on achieving
    #1. dotted line
    #2. the red marker in every section of month like january , february … December
    #3. And also hover on the red marker to see the differences between the current value to the average value

    #31297

    @isysedge,

    #1. dotted line

    You can use lineDashType to set the dash type of stripLine as a dot/dash.

    #2. the red marker in every section of month like january , february … December

    You can use scatter chart with color set to red.

    #3. And also hover on the red marker to see the differences between the current value to the average value

    You can define toolTipContent at dataSeries level to achieve this.

    Please take a look at this JSFiddle for the same.

    ___________
    Indranil Deo
    Team CanvasJS

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

You must be logged in to reply to this topic.