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.
Syncfusion Feedback

Data point on y-axis of a line chart

Thread ID:

Created:

Updated:

Platform:

Replies:

118202 Feb 11,2015 06:57 AM UTC Feb 13,2015 06:52 AM UTC WinRT 7
loading
Tags: Chart
Ibrahim Islam
Asked On February 11, 2015 06:57 AM UTC

I am currently using WinRTXAMLToolkit for my line chart. But I would like to know whether it is possible in SyncFusion's Chart library to plot the first data point on the y-axis of a line chart. Like if the coordinates are (0, 20).
Since the x-axis in line chart are not numerical and categorical. This makes it unconventional. But I still have to do it.
Any feedback is appreciated.

Rachel A [Syncfusion]
Replied On February 11, 2015 11:40 AM UTC

Hi Ibrahim,

Thank you for your interest in Syncfusion products.

We can plot a single data point in chart but the line series cannot be drawn because for a line to be drawn we need more than one point. We can view the data point by enabling AdornmentsInfo in the LineSeries. We have prepared a sample based on your requirement and please download the sample in the below location.

Sample: Axis_unconventional.zip

If this is not your exact requirement, please provide more information on the requirements by modifying the given sample. It would be helpful for us to serve you better.

Please let us know if you have any queries.

Thanks,
Rachel. A



Ibrahim Islam
Replied On February 11, 2015 01:06 PM UTC

Hi Rachel A,

Thank you so much for your reply. 
I am really surprised that you even attached a complete solution. 
Absolute delight!
But the solution and the libraries are targeting Windows 8.0 and my apps are in 8.1 so could you please take the trouble of modifying your project to contain the 8.1 SyncFusion library or give me a link so that I can change it and try it out on your code.

Rachel A [Syncfusion]
Replied On February 11, 2015 03:50 PM UTC

Hi Ibrahim,

Thank you for the update.

We have modified the sample to Windows8.1 project and please download the sample in the below location.

Sample: Axis_unconventional.zip


Please let us know if you have any queries.

Thanks,

Rachel. A



Ibrahim Islam
Replied On February 12, 2015 07:55 AM UTC

Hi Rachel A,

Thank your taking the trouble.
I have gone through your solution.
But it seems the chart expands its x-axis to negative if the coordinate is 0 e.g. (0, 20).
I would want the x-axis to not go beyond 0 (-ve) and stay fixed so that the data point can plotted be ON the y-axis.
Hopefully that is possible in SyncFusion's library.
Please let me know any input on this.

Rachel A [Syncfusion]
Replied On February 12, 2015 01:34 PM UTC

Hi Ibrahim,

Thank you for the update.

When we have single data point in chart, the range will be calculated based on that point(x/y value) in such a way that point will be in center. In this case, it is calculated as -1 to 1 as we are having ‘0’ as x value. SfChart provides the properties called Minimum and Maximum in axis, to limit or extend its axis ranges. The Minimum property suits for your requirement, which limits your minimum value to ‘0’. 

 

We have modified the sample based on your requirement and please download the sample in the below location.

 

Sample: Axis_unconventional_modified.zip

 

For more information, please refer this link.

 

Please let us know if you require further assistance on this.

 

Thanks,

Rachel.A



Ibrahim Islam
Replied On February 12, 2015 01:50 PM UTC

Hi Rachel A,

Thank you very much. 
This will do for now.
I will get feedback from client and if everything goes well then we might opt for SyncFusion for data visualizations.

Rachel A [Syncfusion]
Replied On February 13, 2015 06:52 AM UTC

Hi Ibrahim,

Thank you for the update.

We will wait to hear from you.

Please let us know if you require further assistance on this.

Thanks,

Rachel. A

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.

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

;