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.
Unfortunately, activation email could not send to your email. Please try again.

Best way to show accumulate data in Line Graph?

Thread ID:

Created:

Updated:

Platform:

Replies:

121911 Feb 7,2016 03:38 PM Feb 8,2016 10:22 AM WPF 1
loading
Tags: SfChart
SXTrader
Asked On February 7, 2016 03:38 PM

Hello,
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'.
DTS
Movement
01.01.2016 12:00
+6.5
02.01.2016 20:00
-4
03.01.2016 13:45
+4.4
04.01.2016 13:45
+10
...
...
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

Markus

Sumathi Jayaraj [Syncfusion]
Replied On February 8, 2016 10:22 AM

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

Regards,
Sumathi J

CONFIRMATION

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.

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.

;