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

0
0

Is there a sample or documentation that you can point me to be able to create the chart panels on the fly?

  • You must to post comments
0
0

Hi Brian,

W don’t have a code-behind only examples for adding/removing chart panels. The best example we have is the Create Multi Pane Stock Charts example in our examples suite, which uses MVVM.

We would recommend MVVM as this will make the process of managing the chart panels far easier. The SciChartGroup inherits the WPF ItemsControl, which requires ItemTemplates (e.g. control templates), and setting these in XAML is far easier than in code.

Best regards,
Andrew

  • You must to post comments
0
0

MVVM would be tough at this point and I may have been asking for the wrong thing. I need to display multiple realtime charts and need to be able to add and subtract them similar to a list box but if there is only one chart displayed I want it to take up the entire area. Are panels the right way to go or should I just be making multiple chart surfaces and add them to grid row or something like that.

This leads me to another question about support which is we are interested in the SCICHART WPF SOURCE package as we think Direct X would be useful on slower machines. Are we going to be able to get support for doing things the hard way in the code behind?

Thanks,

Brian

  • You must to post comments
0
0

Hi Brian, sounds like what you need is the WPF Grid control then. All you need to do is manipulate the Grid.Children collection, and set Grid.Row on new items that you add. You will also need to set Grid.ColumnDefinitions programmatically. For an example of this please see http://deepak-sharma.net/2013/02/01/how-to-add-rows-and-columns-to-a-wpf-grid-programmatically

Regarding your second question, it really depends what you ask of us! We will of course point you in the right direction, but if you ask us how to create a Tooltip Template in code-behind, we are more likely to refer to an example on the web of how to do the generic concept (of code behind templates) than provide a custom example. e.g. see our FAQs here https://www.scichart.com/questions/question/how-to-set-style-setter-properties-in-code-behind where we’ve done just this.

Finally, our tech-support does come pretty highly rated. Please see https://www.scichart.com/scichart-wpf-chart-the-value-of-priority-support for some testimonials. We have all kinds of users, those that use MVVM, those that don’t. We of course recommend that you do!

Best regards,
Andrew

  • You must to post comments
0
0

Thanks. Yes, I agree it looks like a WPF Grid would do what I need it to do. I guess I was just wondering if panes were already setup to do something similar as all the charts will be displaying the same time range.

As for the support I completely understand. I wouldn’t expect you to to answer general questions about WPF that I can look up but like you said a pointer in the right direction would be appreciated. Looks like you do have great support and that’s really important for us.

Thanks Again,
Brian

  • Andrew
    Hi Brian, you can have a look at the Synchronize Multiple Charts example which also shows how to synchronize XAxis ranges (time range) and also synchronize mouse events. You need to a. Bind XAxis.VisibleRanges together two-way and b. call MouseManager.SetMouseEventGroup(sciChartSurface.ChartModifier, "uniqueGroupId") on the SciChartSurface.ChartModifier. The mouse event group works totally fine in code behind, but two-way bindings are easier in MVVM than in code.Finally, we're glad to be of help. If there's anything else you need let me know. Best regards, Andrew
  • You must to post comments
Showing 4 results
Your Answer

Please first to submit.