Display a ColumnSeries with variable width


I needed to create a column plot where the columns could be of variable width since every column does not represent a single value in the X axis but a range. I would like to share the solution I implemented in case it helps anyone.

For those who need to display columns of variable width or a plot where you need to ensure all column are next to each other what I used was as many StepLineSeries as datapoints we originally have. Then, every series itself contains two dataPoints where both of them have the same yValue and different xValues to do the desired range.

Ensuring that the greater xValue in series A is the same as the smaller xValue in series A+1 gives you the effect I was looking for.

Hope that helps anyone. 


This is an interesting solution - thanks for sharing it with us :grin:!