Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
592
How to add a line in Stacked Column Chart
posted

Hi All,

We are using Stacked Column Chart to display data with in a week (from Mon -> Sun).

For each day (corresponding with a column from the chart), we want to add a line for estimation value as in the attachment.

In WinForm version we did this by add target line from FillSceneGraph() event .

How can we do this in WPF?

Thanks so much,

Chu

Parents
  • 138253
    Verified Answer
    Offline posted

    Hello Chu,

     

    Thank you for your post. I have been looking into it and I created a sample project for you with the functionality you want. Basically I used Markers for the top most Series and created a DataTemplate for them, which contains a Rectangle with a set Margin. You can always bind the Margin Property to the underlying object’s Property, which determines the target line and use a Converter to return a proper Thickness.

     

    Please let me know if you require any further assistance on the matter.

    xamChartSample.zip
Reply Children