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.
Thanks in advance
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?
DJDavis Jebaraj Syncfusion Team May 20, 2004 04:52 AM
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.
The Chart Axis interval can also be controlled through the Interval property of the Range.
this.chartControl1.PrimaryXAxis.Range.Interval = 3;
ADAdministrator Syncfusion Team June 24, 2004 03:46 AM
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