SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components
We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!
My goal: Cumulate several values over a time span and show them as stacked bars, where the bars should be located exactly over the time span.
Current situation: Bars are always centered around the x value of the datapoint.
Question: How can bars be shifted to the left? In the attached picture the blue bars represent the current situation, the yellow bars are drawn by offseting the x values by -0.5s. The latter is what I wanted to achieve. Is there an easier approach I havn’t seen so far?
Thanks for your support!
Unfortunately, there isn’t an inbuilt support for this feature. It was requested a few times, and we have a task for it, but it isn’t with a high priority though. You can try creating a custom series class by inheriting FastColumnRenderableSeries and overriding the GetColumnCenterTopAndBottom(..) method there. Inside you can access a data point using renderPassData.PointSeries[pointsSeriesIndex], where variables are passed as params, and you can use coordinate calculators for data point to pixels transformation, like
Hope this helps! Please, feel free to ask if you need any assistance,
Please login first to submit.