Stairs line style, vertical lines in charts/plots

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
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!

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

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

1 Like

Thanks, I’ll investigate this.