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
40
DataTemplate for varying number of Series?
posted

I'm currently testing out IG's DataVisualizaion and Charting tools, xamDataChart looks very nice, and I'm wondering if it can emulate, in xaml, a sort of DataTemplate wrapper for a Series (Line particularly). I've had success with a different Charting toolkit with an external wrapper class, and it's code looked something like this:

 

        <multiChart:MultiChart>
            <multiChart:MultiChart.SeriesTemplate>
                <DataTemplate>
                    <chartingToolkit:LineSeries />
                </DataTemplate>
            </multiChart:MultiChart.SeriesTemplate>
        </multiChart:MultiChart>

The DataTemplate's the crucial part, as I do not know how many series I'll need to render until runtime. I don't see any kind of DataTemplate in the XamDataChart class, would there be another way to achieve this kind of behavior?

Parents
  • 30692
    Suggested Answer
    Offline posted

    Hi,

    Please see this post.

    http://community.infragistics.com/forums/p/40011/242380.aspx#242380

     Its possible it may need a small adjustment for the WPF version due to some different ways that DataContext is handled. Let me know if you have any problems or questions. I'll try to test this out later today myself and see if it needs any WPF adjustments.

    We have been considering adding this feature natively. If you are interested in it, you could make a feature request to lodge your vote for it.

    Hope this helps!

    -Graham

Reply Children