Hi,
I am using TeeChart for plotting my data as FastLine.
I am using multiple Custom vertical axises for drawing data.
Now if i am changing the Vertical Custom axe's MinMax value using SetMinMax function then data is going out of the Axis region.(Drawn out side)
Is there anyway i can clamp the data that are out side the Vertical custom axis region?
Regards,
Avijit
Clamp data after Setting the Min Max of custom axis
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Clamp data after Setting the Min Max of custom axis
Hi Avijit,
You can clip ChartRect like this:
For a complete ClipRectangle example look at this thread.
You can clip ChartRect like this:
Code: Select all
Rectangle rect = tChart1.Chart.ChartRect;
tChart1.Graphics3D.ClipRectangle(rect);
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |
Re: Clamp data after Setting the Min Max of custom axis
Hi Narcis,
I tried as you suggested but it did not work for me.
What i did,
I have 10 fastline series. Each series having NaN data also.
For all the series the bottom axis is TeeChart.Axes.Bottom.
For each series it has its own Custom verical axis.
Vertical axis positions are like -
Axis 1 -
Start pos- 0
EndPos - 25
Axis 2 -
Start Pos - 26
EndPos - 50
Axis 3 -
StartPos - 51
EndPos - 75.
So that the axises are drawn in separate area.
I have subscribed to the BeforeDrawValue event of Each of the fastline series.
But only the 1st fastline series is getting drawn. All other series are not drawn.
See the screen shot below -
I tried as you suggested but it did not work for me.
What i did,
I have 10 fastline series. Each series having NaN data also.
For all the series the bottom axis is TeeChart.Axes.Bottom.
For each series it has its own Custom verical axis.
Vertical axis positions are like -
Axis 1 -
Start pos- 0
EndPos - 25
Axis 2 -
Start Pos - 26
EndPos - 50
Axis 3 -
StartPos - 51
EndPos - 75.
So that the axises are drawn in separate area.
I have subscribed to the BeforeDrawValue event of Each of the fastline series.
But only the 1st fastline series is getting drawn. All other series are not drawn.
See the screen shot below -
Re: Clamp data after Setting the Min Max of custom axis
Hi,
I have created one sample project to show you the problem. Regards,
Avijit
I have created one sample project to show you the problem. Regards,
Avijit
-
- Site Admin
- Posts: 14730
- Joined: Mon Jun 09, 2003 4:00 am
- Location: Banyoles, Catalonia
- Contact:
Re: Clamp data after Setting the Min Max of custom axis
Hi Avijit,
Ok, now I understand which is the exact problem. In that case you should do as in the All Features\Welcome!\Axes\Opaque zones and use ClearClipRegions in the AfterDraw event.
Ok, now I understand which is the exact problem. In that case you should do as in the All Features\Welcome!\Axes\Opaque zones and use ClearClipRegions in the AfterDraw event.
Best Regards,
Narcís Calvet / Development & Support Steema Software Avinguda Montilivi 33, 17003 Girona, Catalonia Tel: 34 972 218 797 http://www.steema.com |
Instructions - How to post in this forum |