Home Forums Chart Support PlotBands Reply To: PlotBands

#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