Range Band

The range band feature is used to highlight a particular range along the y-axis using start and end range property. You can also customize the color and opacity of the range band.

  • javascript
  • /// <reference path="tsfiles/jquery.d.ts" />
    /// <reference path="tsfiles/ej.web.all.d.ts" />
    
    module SparklineComponent {
        $(function () {
            var sample = new ej.datavisualization.Sparkline($("#Sparkline"),{
                // ...
               
                rangeBandSettings:{
                    startRange:4,
                    endRange:30,
                    color:"#ff14ae",
                    opacity:0.4
                },
    
                // ...
           });
        });
    }