Hello SF team,
I need to use a Column Series chart in my WPF application.
The X-axis data for the chart is picked up from Serial Port on real-time basis at interval of 1-second. Lets say in a List<int>(). The Y-axis would be fixed for 0 to 100.
The chart should update accordingly. At a time max. 24 columns would be shown in the chart.
And thereafter it should rollover like 'moving-window' scenario.
I am totally new to SF and this would be the very first time I would be using (any) SF control.
I did go through basic tutorial of SF Column chart. But its pretty text-book kind of tutorial and I could not find one for real-time data. Also, my application is not using MVVM or any other design pattern.
Could you please help me with relevant sample code?
Thanks!
Dear @Yuvaraj,
Thanks a lot for super quick reply!
Really a simple and working example.
Though the sample is for LineSeries, I could figure out to tweak for ColumnSeries.
This is really helpful and close to my requirement.
Now I will work on the real thing and get back if any further help required.
Thanks again!
Cheers!
Jaywant
Hi,
As I tweaked the sample code,
I am getting NullReference exception.
Please see attached files.
DataGenerator (.cs & .xaml) - orginal sample code - works perfectly.
THDVChart(.cs & .xaml) - my tweaked code - throws exception at line no 36.
Please help.
Thanks!
|
<chart:SfChart x:Name="THDVChart" Margin="0,10,19.8,0" AreaBorderThickness="0,1,1,1" Header=" " Palette="Custom" >
. . .
<chart:FastColumnBitmapSeries Label="A" XBindingPath="Date"
YBindingPath="Rph" LegendIcon="Rectangle" StrokeThickness="1"
ItemsSource="{Binding DynamicData}"/>
</chart:SfChart> |