Drawing series without Y axis
Posted: Thu Mar 24, 2011 9:19 pm
I would like to know if there is a way to draw series without an Y series. That series should be align with the pixel of the chartrect or a ratio of it.
Why i need something like that:
We use TChart to analyse Data we collected from Build Automation System. Usually, the X(bottom) axis is the time, the Y(Left) axis is the (kW,kWh,m³,l/h, etc...) and the Y(right) axis is the °C or °F for outdoor/indoor temp et... Often, we have other series that are On/Off data. I want to be able to show those data in the same graphic. My idea was to show the first one on the bottom using 10 pixel height and the next one over that one. So those one are pixel related and wont be screwed by the Y axis zoom and scale.
What i did try to do is:
Using a TList to put all my On/Off series in and removing them from the TChart (so they wont be draw automatically)
Then, on the AfterDraw of the TChart, i am painting them manually.
This is "good" but im having some speed issue and when i did that, i forgot my code was all based on the TChart. So im screw because there are too much stuff to change to work with that TList of mine.
Is there an exceptional way to get where i wish to go ? I know that most of the time, you guys did already made stuff that i havent heared of. So please, do as usual, and tell me TChart already manage that and point me where to look at to solve my problem.
Thanks a lot.
GoToXY
Why i need something like that:
We use TChart to analyse Data we collected from Build Automation System. Usually, the X(bottom) axis is the time, the Y(Left) axis is the (kW,kWh,m³,l/h, etc...) and the Y(right) axis is the °C or °F for outdoor/indoor temp et... Often, we have other series that are On/Off data. I want to be able to show those data in the same graphic. My idea was to show the first one on the bottom using 10 pixel height and the next one over that one. So those one are pixel related and wont be screwed by the Y axis zoom and scale.
What i did try to do is:
Using a TList to put all my On/Off series in and removing them from the TChart (so they wont be draw automatically)
Then, on the AfterDraw of the TChart, i am painting them manually.
This is "good" but im having some speed issue and when i did that, i forgot my code was all based on the TChart. So im screw because there are too much stuff to change to work with that TList of mine.
Is there an exceptional way to get where i wish to go ? I know that most of the time, you guys did already made stuff that i havent heared of. So please, do as usual, and tell me TChart already manage that and point me where to look at to solve my problem.
Thanks a lot.
GoToXY