Commit Graph

14 Commits

Author SHA1 Message Date
darius
488a25bd42 1) Created new unit TAChartUtils, moved some support code into it.
2) Heavily refactored code of CalculateIntervals and TAGraph.DrawAxis procedures -- removed lots of duplicated code, simplifed logic, extracted local procedures etc.
3) Introduced TPenBrushFontRecall helper class.
4) Added 'Axis titles' checkbox to the demo program.

Patch by Alexander Klenin
Resolves: http://bugs.freepascal.org/view.php?id=12758

git-svn-id: trunk@17799 -
2008-12-11 18:57:43 +00:00
darius
0d6bfec764 TChartSeries.AddXY inserts new point into a sorted list, which have O(N^2) computational cost.
This speeds up adding really long series.

Patch from Alexander Klenin
http://bugs.freepascal.org/view.php?id=12642

git-svn-id: trunk@17504 -
2008-11-22 09:44:29 +00:00
darius
897938b8e4 Patch by Alexander Klenin
- Extract duplicated code into TAGraph.LineInViewPort function.
- Heavily rearrange code inside TSerie.Draw and TAreaSeries.Draw procedures to enchance readability, remove code duplication and get rid of 'goto' statement.
- Fix a bug in TAreaSeries.Draw: areas higher then current viewport were not drawn.
- Use ACanvas parameter instead of ParentChart.Canvas in Draw procedures.
- Remove unused variables in TAGraph unit.

Fixes: http://bugs.freepascal.org/view.php?id=12618

git-svn-id: trunk@17399 -
2008-11-15 16:07:01 +00:00
darius
cde07c30e6 Remove TAEngine unit and TSeriesList class
Auto-update chart when one of its series is destroyed

patch by Alexander Klenin 
http://bugs.freepascal.org/view.php?id=12589

git-svn-id: trunk@17289 -
2008-11-08 21:08:01 +00:00
darius
f1f3e50cdb refactoring patch by Alexander Klenin
fixes: http://bugs.freepascal.org/view.php?id=12584

git-svn-id: trunk@17270 -
2008-11-07 21:46:59 +00:00
darius
101d1a7688 applied reformatting patch from Alexander Klenin
http://bugs.freepascal.org/view.php?id=12577

git-svn-id: trunk@17252 -
2008-11-06 18:24:10 +00:00
darius
fdbdc5410b Added two more styles to TSeriesPointerStyle type, useful when there is a need to draw value intervals on a chart
path by Alexander Klenin

git-svn-id: trunk@17240 -
2008-11-05 17:58:25 +00:00
mattias
2996a3c332 rename COPYING.modifiedLGPL to COPYING.modifiedLGPL.txt
git-svn-id: trunk@15834 -
2008-07-22 09:48:15 +00:00
vincents
675e3bee30 TAChart: Code cleanups and bugfixes (bugfixes by Uwe Zimmermann and Oled), bug #10699
git-svn-id: trunk@13877 -
2008-01-25 14:45:02 +00:00
vincents
e1e7e14329 TAChart: Implemented ZoomFull, PaintOnCanvas and slight modifications to add TSerie pen style (by oleg), issue #10679
git-svn-id: trunk@13854 -
2008-01-24 12:00:43 +00:00
vincents
1d52ab2160 tachart: Bugfixes and partially implemented multibar in TBarSeries (bug #9802) from Luis Rodrigues
git-svn-id: trunk@12203 -
2007-09-27 19:44:46 +00:00
vincents
9e0cbc1e29 TAChart: Series clipping bugfixes and partially implement TSeriesPointer from Luis Rodrigues (issue #8706)
git-svn-id: trunk@10959 -
2007-04-17 14:43:02 +00:00
vincents
ebefd69526 TAChart: bug fixes and implemented Series.ShowInLegend from Luis Rodrigues
git-svn-id: trunk@10791 -
2007-03-23 19:38:50 +00:00
vincents
3fc4f456a7 tachart: user lowercase unit filenames
git-svn-id: trunk@10663 -
2007-02-20 11:31:09 +00:00