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
Issues with Bar graph component
-
- Guru
- Posts: 1603
- Joined: Fri Nov 15, 2002 12:00 am
Re: Issues with Bar graph component
Hello Tod,
May I suggest you use the Histogram series type? It is this series type TeeChart uses internally for a couple of its financial functions, namely the MACDFuntion and the MoneyFlowFunction. If you are still experiencing problems, would you be so kind as to paste here some simply code with which I can reproduce the problem?
May I suggest you use the Histogram series type? It is this series type TeeChart uses internally for a couple of its financial functions, namely the MACDFuntion and the MoneyFlowFunction. If you are still experiencing problems, would you be so kind as to paste here some simply code with which I can reproduce the problem?
Best Regards,
Christopher Ireland / 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 |