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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Wrong chart serie point position calculation

Thread ID:





13858 May 12,2004 01:06 PM UTC Jun 24,2004 08:46 AM UTC WinForms 4
Tags: Chart
Michael Mann
Asked On May 12, 2004 01:06 PM UTC

Hi, I''m using the following chart points: new ChartPoint(date, doubleValue); The values are displayed as percent (formatted) and even the Y-axis labels are the double values as percentage values. When displayed, the points are often positioned below it''s real value. I thought it has something to do with the formatting, but I just used the double values, and even then, the points are not at their correct position in the chart. Any hints? Thanks in advance Michael

Davis Jebaraj [Syncfusion]
Replied On May 13, 2004 06:15 PM UTC

Hi, Please see the sample linked to below for a sample charting dates with a percentage (formatted) value along the Y axis. http://www.syncfusion.com/support/user/Uploads/ChartDateAxisLabel_1832.zip Please let us know if this doesn''t address your issues. Regards, Davis

Michael Mann
Replied On May 17, 2004 08:15 AM UTC

Hi, it addressed my problem, but I still have the problems, I described above. I modified your solution - see the attached zip file. It seems that the points are correct, but the labels not. Following the horizontal separators, the values would be correct, if you''d use the labels printed above that line. But the labels are higher positioned. The sample that I attached demonstrates this behaviour. 2nd question: I use custom format as chart value type for the xAxis. How can I avoid, that every label is printed and I see only a few, perhaps every third or fourth? thanks, Michael ChartDateAxisLabel_5287.zip

Davis Jebaraj [Syncfusion]
Replied On May 20, 2004 09:52 AM UTC

Hi, I am able to see the problem now. I have submitted the issue to the development team and we will include a fix at the earliest. Regarding your 2nd question: I use custom format as chart value type for the xAxis. How can I avoid, that every label is printed and I see only a few, perhaps every third or fourth? Please see the sample linked to below an example of using the ChartAxisFormatLabel event to display certain values only. In this case, only whole numbers are displayed. http://www.syncfusion.com/support/user/Uploads/ChartZoomLabels.zip The Chart Axis interval can also be controlled through the Interval property of the Range. this.chartControl1.PrimaryXAxis.Range.Interval = 3; Regards, Davis

Administrator [Syncfusion]
Replied On June 24, 2004 08:46 AM UTC

Hi, you''re right there is a Range.Interval property, but it seems to me that this only works if the value of Chart.PrimaryXAxis.ValueType is set to ChartValueType.DateTime. If this flag is set to ChartValueType.Custom the interval property doesn''t work as expected. I want to use the custom type because there''s a lot of empty space in the chart wasted if I set it to ChartValueType.DateTime. Is there any workaround? Maybe to prevent the chart to render a lot of empty space above, below and to both sides? Thanks for any suggestions Michael Mann


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