Hi TChart,
I was wondering if there is a way to stretch a specific portion of a TChart's axis?
For example, if the X axis of a TChart has a minimum of 0.0 and a maximum of 10.0, and the entire axis is 100 pixels long, you would expect there to be exactly 10 pixels between each interval.
What I would like to do is stretch a certain portion of the X axis. Following the above example, suppose I wanted to make the space between the fifth and sixth interval twice as long as the spaces between the other intervals, so that there are exactly 20 pixels between the fifth and sixth intervals, but still only 10 pixels between the other intervals? (The total length of the axis would then be 110 pixels long).
Basically, I'm trying to magnify a specifc area of the TChart, and have the Axes reflect this magnification.
Any help would be greatly appreciated.
Thank You,
Tim Mitchell
Stretching specific areas of a TChart's axis.
Hi.
I'm afraid this feature is not supported. While you can define non-equidistant intervals for axis labels (by using custom labels) you cannot stretch part of (already drawn) axis.
I'm afraid this feature is not supported. While you can define non-equidistant intervals for axis labels (by using custom labels) you cannot stretch part of (already drawn) axis.
Marjan Slatinek,
http://www.steema.com
http://www.steema.com
Bummer.
Is there a way to create a custom axis with the ticks labelled differently?
For example, if the ticks are at 0.0, 1.0, 2.0, and 3.0, is there a way I could re-label 3.0 to say 2.5?
This way, I think I might be able to fake the appearance of a specific interval with more space between it.
Thanks in advance,
Tim Mitchell
Is there a way to create a custom axis with the ticks labelled differently?
For example, if the ticks are at 0.0, 1.0, 2.0, and 3.0, is there a way I could re-label 3.0 to say 2.5?
This way, I think I might be able to fake the appearance of a specific interval with more space between it.
Thanks in advance,
Tim Mitchell
Hi Tim
What's New -> Welcome ! -> New Features -> Chart -> Axes -> Custom Labels.
Yes, you can use custom axis labels, as in the example you can see in the Demo Features project under :Is there a way to create a custom axis with the ticks labelled differently?
What's New -> Welcome ! -> New Features -> Chart -> Axes -> Custom Labels.
You can also change the Axis labels using :For example, if the ticks are at 0.0, 1.0, 2.0, and 3.0, is there a way I could re-label 3.0 to say 2.5?
Code: Select all
line1.Labels[3] = "2.5";
Pep Jorge
http://support.steema.com
http://support.steema.com