Showing posts with label WPF Toolkit. Show all posts
Showing posts with label WPF Toolkit. Show all posts

WPF Toolkit Chart with Scrollbar

At the moment i'm working on WPF Toolkit Chart, because i need to visualize some dynamic collection.
Most of the times these collections came from a large database and one of the problem i met it was this:



Pretty awful of course, and so i had to add a scrollview.

This is easy to do, just include your chart declaration in XAML into a ScrollViewer, and then group everything into a border, a grid or a panel.
Example:



To enable the scrollbar it's needed to se a custom width to Chart,like this way.



and this will do the trick.



Complete solution for Visual Studio 2010 is here:
http://www.mesta-automation.com/Downloads/WPF%20Scroll%20Chart.rar