axes offset and others
Hi Narcis,
how are you? I have few new requirements here now where I need your support. I am using TeeChart Actives control v8 for my web application. While plotting the chart the series starts from 0 and end to the last point avalable. I need to have some blankspace(margin) on all the sides on the chart. I mean the series should start from 0 but it should not be the starting point of the chart also. Same for all the other sides also. If the series last point is 100, I need some blank space after 100 also. Another thing is regarding the cross point series placement. I need to put them at the extreme bottom and extreem top not connected with the series. please help with the idea how to place the chart label with equal divisions, say if I have 100 data points and I need 10 label points then it should be displayed something like 0,10,20,...100 and some more extra space at the end.
Please help me out with these issues.
Thanks and regards
Ashutosh
how are you? I have few new requirements here now where I need your support. I am using TeeChart Actives control v8 for my web application. While plotting the chart the series starts from 0 and end to the last point avalable. I need to have some blankspace(margin) on all the sides on the chart. I mean the series should start from 0 but it should not be the starting point of the chart also. Same for all the other sides also. If the series last point is 100, I need some blank space after 100 also. Another thing is regarding the cross point series placement. I need to put them at the extreme bottom and extreem top not connected with the series. please help with the idea how to place the chart label with equal divisions, say if I have 100 data points and I need 10 label points then it should be displayed something like 0,10,20,...100 and some more extra space at the end.
Please help me out with these issues.
Thanks and regards
Ashutosh
Hi Ashutosh,
I think what you want is to set a maximum and a minimum offset for the axes. Please, try the properties:
And regarding the labels you want to display, I think that what you need is some annotation tools with custom position. Could you take a look at the demo "All Features/Tools/Annotation"?
I think what you want is to set a maximum and a minimum offset for the axes. Please, try the properties:
Code: Select all
TChart1.Axis.Bottom.MinimumOffset = 100
TChart1.Axis.Bottom.MaximumOffset = 100
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi,
I am trying to alter the left axis(Y Axis) increment value to some custom value. The LOC I am using is:TChart1.Axis.Left.Increment = Math.Floor(Math.Abs((System.Convert.ToDouble(MinYVal) - System.Convert.ToDouble(MaxYVal)) / 5));
But it always displays the chart with difault values that is calculated automatically.
The same works fine for bottom axis but not working for left.
Please help
Thanks and regards
Ashutosh
I am trying to alter the left axis(Y Axis) increment value to some custom value. The LOC I am using is:TChart1.Axis.Left.Increment = Math.Floor(Math.Abs((System.Convert.ToDouble(MinYVal) - System.Convert.ToDouble(MaxYVal)) / 5));
But it always displays the chart with difault values that is calculated automatically.
The same works fine for bottom axis but not working for left.
Please help
Thanks and regards
Ashutosh
Hi Ashutosh,
I think you need to do something like this:
I think you need to do something like this:
Code: Select all
TChart1.Axis.Left.Automatic = False
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi Ashutosh,
Excuse me, it seems that you don't need to set the automatic axis property to false. Setting the increment it should take effect.
The increment works like a "minimum" increment. The labels will be displayed with this increment if there is enough space to draw them without overlapping.
Excuse me, it seems that you don't need to set the automatic axis property to false. Setting the increment it should take effect.
The increment works like a "minimum" increment. The labels will be displayed with this increment if there is enough space to draw them without overlapping.
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi again Ashutosh,
If you want to force the labels to be overlapped if necessary, you could do the following:
If you want to force the labels to be overlapped if necessary, you could do the following:
Code: Select all
TChart1.Axis.Left.Labels.Separation = 0
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |
Hi Ashutosh,
We splitted the last message you posted into a new thread because it was not about the same subject discussed here. The new thread is here:
http://www.teechart.net/support/viewtopic.php?t=9242
We splitted the last message you posted into a new thread because it was not about the same subject discussed here. The new thread is here:
http://www.teechart.net/support/viewtopic.php?t=9242
Best Regards,
Yeray Alonso Development & Support Steema Software Av. Montilivi 33, 17003 Girona, Catalonia (SP) | |
Please read our Bug Fixing Policy |