cancel
Showing results for 
Search instead for 
Did you mean: 

Change line chart to Step chart

harikm007
12 - Data Integration
12 - Data Integration

A step chart is a line chart in which points are connected by horizontal and vertical line segments, looking like steps of a staircase. Use below script to display line chart as steps.

Refer: https://www.binextlevel.com/post/change-line-chart-to-step-chart

harikm007_0-1657210997832.png

Steps:

  1. Create a line chart. Make sure the Line Type selected is Straight (not Smooth)

  2. Add below script to the widget

  3. Save the script and refresh the widget

 

widget.on('processresult',function(se,ev){
	stepType = 'left' //possible values are : left, right, center
	ev.result.series[0].step = stepType
})

-Hari

 

0 REPLIES 0