SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.



I’ve been trying to follow the FAQ on positioning columns between data values but instead of using a FastMountainRenderableSeries, I’ve been using a StackedMountainRenderableSeries.

Ticks are being drawn correctly. The problem arises when it’s drawing the lines that separate each column.

If I have two series, the lines for the first one are being drawn, but the second line drawing is overwriting the first lines because the position coordinates are incorrect. I understand that in order to solve this issue I would have to aggregate the lengths of each column to the next series and then calculate the drawing position from there, but as far as I’ve been looking, the series do now know anything between each other.

Is there a work-around or a place where I can calculate this aggregation and have it sent to each stacked series?

I attach an image with the issue.

Thank you.

  • You must to post comments
Best Answer

Hi Sebastian,

Thank you for the additional information. Concerning how to find accumulated values, there is a property in the StackedMountainRenderableSeries class called Wrapper of type IStackedMountainsWrapper. There is the AccumulateYValueAtX(IRendrableSeries, Index) method, which should do this. It returns a pair of values for a RenderableSeries, Tuple<double, double>(top, bottom), which are aggregated of all the “lower” series.

You will need to convert these to pixels then using the Coordinate Transformation API.

Please let us know if you managed to achieve the desired.

Best regards,

  • Sebastian de Ugarriza
    Thank you very much Yuriy! I found a work-around what it was horrible. This solution is much better.
  • You must to post comments

Hi Sebastian,

Thanks for your request. May I ask you for some clarifications? Could you please give a link to that FAQ you mentioned in your post?
Could you also describe your use-case a bit more? It isn’t clear what you want to achieve, and what the overlapping series you use. Could you please give clarify this as well?

  • You must to post comments

Hello Yuriy.

The FAQ I mention can be found here:

I’m looking to create a Stacked Histogram, but where the range values are positioned between the columns.

The Histogram example doesn’t provide this functionality, so I found the FAQ and set to use a MountainSeries. For a single series, it works great. When I want to use Stacked series, the line that is being drawn between each “column” is not working correctly, mainly because the ZeroLineY is different for the second series (since each starting column is at the end of the height of the first column).

The problem is that the series do not know about each other, so I cannot calculate the new position of the line to draw based on the previous series’ heights.

  • You must to post comments
Showing 3 results
Your Answer

Please first to submit.