# Stairs line style, vertical lines in charts/plots

**URL:** <https://discourse.slicer.org/t/stairs-line-style-vertical-lines-in-charts-plots/1507>\
**Category:** Feature requests\
**Tags:** plots\
**Created:** [November 22, 2017, 8:05pm UTC](https://discourse.slicer.org/t/stairs-line-style-vertical-lines-in-charts-plots/1507 "2017-11-22T20:05:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Post date:** [November 22, 2017, 8:05pm UTC](https://discourse.slicer.org/t/stairs-line-style-vertical-lines-in-charts-plots/1507/1 "2017-11-22T20:05:33Z")

</div>

I’d like to request “stairs” as a chart and/or plot type. The Step Chart in jqPlot would be a good starting point:  
[http://www.jqplot.com/examples/step-charts.php](http://www.jqplot.com/examples/step-charts.php)  
The plot creation system Grace (either Qtgrace or xmgrace) has options for “left stairs” and “right stairs”, depending if the x-axis value is to the right or left of the flat portion. Ideally, I’d like to see those options replicated. The reason for this is to make it possible to display histograms well. Bar charts don’t work, because the sides of the bars don’t meet.

I’d also like to request the ability to place vertical lines as markers in charts and/or plots. My intention is to use a slider widget to move the vertical lines on the chart.

Thanks!

---

<div class="post-metadata">

**Author:** ![pieper](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pieper/32/8_2.png) [@pieper](https://discourse.slicer.org/u/pieper)\
**Post date:** [November 22, 2017, 8:54pm UTC](https://discourse.slicer.org/t/stairs-line-style-vertical-lines-in-charts-plots/1507/2 "2017-11-22T20:54:51Z")

</div>

Hi Michael -

I don’t think anyone is actively working on the jqplot based plotting in Slicer right now. In general features from jqpolot are mapped pretty directly, so if you don’t mind a little a little C++ and javascript it might be a very mechanical translation to make this work (exposing some features by following the pattern of the existing code).

But as described here [1] slicer also supports vtkPlots [2] which may have better support for what you are looking for.

Not sure what will work best for you.

Cheers,  
Steve

[1] [https://www.slicer.org/wiki/Documentation/Nightly/Developers/FAQ#What\_is\_the\_difference\_between\_Slicer\_Plot\_and\_Chart\_.3F](https://www.slicer.org/wiki/Documentation/Nightly/Developers/FAQ#What_is_the_difference_between_Slicer_Plot_and_Chart_.3F)

[2] [https://www.vtk.org/features-2d-plots-and-charts/](https://www.vtk.org/features-2d-plots-and-charts/)

---

<div class="post-metadata">

**Author:** ![mschumaker](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/mschumaker/32/1395_2.png) [@mschumaker](https://discourse.slicer.org/u/mschumaker)\
**Post date:** [November 22, 2017, 10:13pm UTC](https://discourse.slicer.org/t/stairs-line-style-vertical-lines-in-charts-plots/1507/3 "2017-11-22T22:13:13Z")

</div>

Thanks, I’ll investigate this.
