cancel
Showing results for 
Search instead for 
Did you mean: 

Define Widget Navigator Scroll Position left or Right

Sijo1995
7 - Data Storage
7 - Data Storage

This Script is used for Navigator Scroll Position left or Right.

The following widget script will default the navigation scroller to the maximum position. 
Configure the script via the displayBars variable. This is the number of bars that will be displayed. 
var displayBars = 10;

widget.on('beforeviewloaded', function ( ev, args ) {
  args.options.navigator.enabled = true;
        //args.options.xAxis.max=args.options.series[0].data.length;
    //args.options.xAxis.max=6;
        var maxBarCount = (args.options.series[0].data.length - 1);
        args.options.xAxis.min= maxBarCount - displayBars + 1;
        args.options.xAxis.max= maxBarCount
          
});



 

Sijo1995_0-1666172329224.png

 

0 REPLIES 0