Issues with Bar graph component
Posted: Mon May 18, 2015 6:19 pm
Hi,
I'm trying to use TeeChart in a WinForms application to display a series of stock data (ranging from 0-23400 data points in a given day) using the FastLine and Bar graph components. However I'm running into some performance issues with the Bar component.
In the first screenshot, I've found that occasionally in instances where data is sparse, bars displayed together tend to overlap when the bottom axis minimum and maximum spread is large but the data points are very few but aggregated (all 12 points in this screenshot below are represented close together but the bars that represent them are overlapping).
In the second screenshot, having more data points than visible pixels causes the bars to overlap again and display transparency (as you can see with the varying shades of red around 12:00). When this occurs, the performance of my WinForms application takes a hit as resizing the window becomes slow. I've noticed that removing the Bar component from the graph causes performance to increase again, but I'm wondering if redrawing the graph can be simplified through some property to ease the performance issues and prevent bars from overlapping.
I tried using the Volume component and while it had faster redrawing, it does not have a way to specify wider bars for data points. All bars show up as 1-pixel wide as shown in the screenshot below.
I'm looking for help to resolve these issues and any advice would be appreciated.
Thanks,
Todd
I'm trying to use TeeChart in a WinForms application to display a series of stock data (ranging from 0-23400 data points in a given day) using the FastLine and Bar graph components. However I'm running into some performance issues with the Bar component.
In the first screenshot, I've found that occasionally in instances where data is sparse, bars displayed together tend to overlap when the bottom axis minimum and maximum spread is large but the data points are very few but aggregated (all 12 points in this screenshot below are represented close together but the bars that represent them are overlapping).
In the second screenshot, having more data points than visible pixels causes the bars to overlap again and display transparency (as you can see with the varying shades of red around 12:00). When this occurs, the performance of my WinForms application takes a hit as resizing the window becomes slow. I've noticed that removing the Bar component from the graph causes performance to increase again, but I'm wondering if redrawing the graph can be simplified through some property to ease the performance issues and prevent bars from overlapping.
I tried using the Volume component and while it had faster redrawing, it does not have a way to specify wider bars for data points. All bars show up as 1-pixel wide as shown in the screenshot below.
I'm looking for help to resolve these issues and any advice would be appreciated.
Thanks,
Todd