Can an ImagePoint series plot X as a value and Y as pixel?
Posted: Tue Jun 07, 2011 6:35 am
Greetings,
I have a Chart on which I would like to plot an ImagePoint series to denote special actions that occur on special dates, however I'd like the complete series to be drawn on the bottom of my chart, now heres the problem my chart is stock prices and my Chart autoscales the Y axis maximum and minimums so the price data always fill up the chart space.
This means that the Y scale is always changing and so plotting the price as Y will make my ImagePoint series 'jump' up and down as I scroll left or right on the chart.
Now I noticed there is an ImagePoint.add(pointf) overload that says in the text description it accepts pixel positions .. but it doesnt really, it still treats the Y as a Price which explains why it takes floats.
Can I somehow plot my Y as pixels ??? or is there any other technique for 'fixing' the Y values in such a way that it stays put where I want it on the screen . in my case close to the bottom of the chart.
I have a Chart on which I would like to plot an ImagePoint series to denote special actions that occur on special dates, however I'd like the complete series to be drawn on the bottom of my chart, now heres the problem my chart is stock prices and my Chart autoscales the Y axis maximum and minimums so the price data always fill up the chart space.
This means that the Y scale is always changing and so plotting the price as Y will make my ImagePoint series 'jump' up and down as I scroll left or right on the chart.
Now I noticed there is an ImagePoint.add(pointf) overload that says in the text description it accepts pixel positions .. but it doesnt really, it still treats the Y as a Price which explains why it takes floats.
I know that in the TeeChart source code there is much conversion from Y value to pixel position and vice versa so maybe there is a way in the front end .. never know till you ask eh ...public Int32 Add(System.Drawing.PointF)
Adds the pair of floating point x- and y-pixel coordinates
Can I somehow plot my Y as pixels ??? or is there any other technique for 'fixing' the Y values in such a way that it stays put where I want it on the screen . in my case close to the bottom of the chart.