We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Best way to show accumulate data in Line Graph?

Thread ID:





121911 Feb 7,2016 08:38 PM UTC Feb 8,2016 03:22 PM UTC WPF 1
Tags: SfChart
Asked On February 7, 2016 08:38 PM UTC

I'm not sure if this is the right place to post this question but alas the gods are with those who dare.

I've got a database table which among other columns has two named 'DTS' and 'Movement'.
01.01.2016 12:00
02.01.2016 20:00
03.01.2016 13:45
04.01.2016 13:45
Now I want to visualize this information in a Line graph, The X Axis should be the 'DTS'-Column but the Y Axis should be the sum of the values of the movement column up to the DTS.
For example
X: 01.01.2016 12:00 Y: 6.5
X: 02.01.2016 20:00 Y: 2.5 (6.5 - 4)
X: 03.01.2016 13:45 Y: 6.9 (6.5 - 4 +4.4)
X: 04.01.2016 13:45 Y: 16.9 (6.5 - 4 + 4.4 + 10)
Is there's an elegant way to solve this?

Best Regards


Sumathi Jayaraj [Syncfusion]
Replied On February 8, 2016 03:22 PM UTC

Hi Markus,

Thanks for contacting Syncfusion support.

We are able to achieve your requirement by manipulated the accumulated values using movement values. We have prepared a sample and it can be downloaded in the following location.

Sample : LineGraph

Sumathi J


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon