Home Forums Chart Support PlotBands

PlotBands

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

    Is there any support for plotBands, similar to what there is in HighCharts or jqCharts, to highlight a region of the chart? Stiplines are fine for showing thresholds but to highlight a section of a spline or line chart something line a plotBand is required.

    #60530

    James,

    CanvasJS does support a feature similar to plotBands in Highcharts called stripLines. You can use stripLines in two ways:

    1. Single threshold (value): You can set a value for the stripLine to highlight a single threshold on the axis.
    2. Range (startValue and endValue): You can define both startValue and endValue to highlight a specific region, effectively creating a plotBand-like effect to emphasize a section of the chart between two axis values.

    Please find the code-snippet for creating a stripLine (plotband) below:

    axisY:{
      stripLines:[{                
        startValue: 25,
        endValue: 32,                
        color: "#d8d8d8"                
      }]
    }

    stripLine on axisY


    Vishwas R
    Team CanvasJS

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

You must be logged in to reply to this topic.