Candle - Scrolling, RePaint queries
Posted: Thu Nov 29, 2007 11:56 am
Hello,
I am trying to implement TeeCharts for financial charting, i.e. Candle series. Whilst things are progressing OK, I need assistance with the following;
1. I would like the user to be able to scroll (left or right) using a standard VB scrollbar. How can I connect the scrollbar to the teechart so that any scrolling on the scrollbar will result in the chart scrolling in accordance.
2. Zooming, how can I implement a zoom in and out button, keeping in mind the scrollbar will need to adjust also.
3. When setting chart axis through code, am I best to do this in the OnBeforeDrawChart or OnAfterDraw call functions.
4. Can we set the candle width to two decimal places? This would allow the graphical elements (candles) to better grow and shrink as the user zooms in and out.
5. Can I prevent TeeCharts from panning past the data on both the left and right sides of the chart. Scrolling via the mouse is vertical only and I would like to stop TeeCharts from scrolling past the ends of the dataset when using the mouse for scrolling.
6. Can a horizontal line be located between two series. It would be good to be able to position the line using a percent setting just like we can define the heights of series using a percentage range, i.e. StartPosition, EndPosition.
I would really like some feedback on the above, we have implemented some functionality but I would like to know how others have implemented such functionality.
Any help is appreciated.
Cheers
A
I am trying to implement TeeCharts for financial charting, i.e. Candle series. Whilst things are progressing OK, I need assistance with the following;
1. I would like the user to be able to scroll (left or right) using a standard VB scrollbar. How can I connect the scrollbar to the teechart so that any scrolling on the scrollbar will result in the chart scrolling in accordance.
2. Zooming, how can I implement a zoom in and out button, keeping in mind the scrollbar will need to adjust also.
3. When setting chart axis through code, am I best to do this in the OnBeforeDrawChart or OnAfterDraw call functions.
4. Can we set the candle width to two decimal places? This would allow the graphical elements (candles) to better grow and shrink as the user zooms in and out.
5. Can I prevent TeeCharts from panning past the data on both the left and right sides of the chart. Scrolling via the mouse is vertical only and I would like to stop TeeCharts from scrolling past the ends of the dataset when using the mouse for scrolling.
6. Can a horizontal line be located between two series. It would be good to be able to position the line using a percent setting just like we can define the heights of series using a percentage range, i.e. StartPosition, EndPosition.
I would really like some feedback on the above, we have implemented some functionality but I would like to know how others have implemented such functionality.
Any help is appreciated.
Cheers
A