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

Wrong chart serie point position calculation

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

4 Replies

DJ Davis Jebaraj Syncfusion Team 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


MM Michael Mann 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


DJ Davis Jebaraj Syncfusion Team 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


AD Administrator Syncfusion Team 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

Loader.
Up arrow icon