top of page

Change line chart to Step chart

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.



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
})

3 Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
alec.freudenstein
Aug 05, 2022

For example, can the purple line below be converted into a stepper line?

Like
BI Next Level
BI Next Level
Aug 05, 2022
Replying to

Yes, that's possible.

Only change required is index in the script. Change index from 0 to 1


widget.on('processresult',function(se,ev)

{

stepType ='left'//possible values are : left, right, center

ev.result.series[1].step = stepType

})



Like

alec.freudenstein
Aug 05, 2022

Can this be done for spline values within a column chart?

Like
BI Next Level white logo

BI Next Level is your trusted resource for BI customization, data solutions, and expert insights. Explore practical tips, scripts, and tutorials for tools like Sisense, Python, and SQL. Let’s transform your data into impactful insights together.

Quick Links
Connect with us
Copyright © 2024. All Rights Reserved. Designed, Developed & Maintained  by Intertoons
bottom of page