Commit Graph

128 Commits

Author SHA1 Message Date
ask
2f2f282448 TAChart: Extract TBasicPointSeries.GetLabelDirection function
git-svn-id: trunk@24111 -
2010-03-20 13:10:37 +00:00
ask
d474f1e6a3 TAChart: Extract TChartMarks.MeasureLabel function.
+ Take label font into account while measuring mark labels.

git-svn-id: trunk@24110 -
2010-03-20 11:47:31 +00:00
ask
3ec9c78ab6 TAChart: Draw rotated bar series
git-svn-id: trunk@24083 -
2010-03-18 14:08:01 +00:00
ask
03d99c380e TAChart: Fix unordered methods.
git-svn-id: trunk@24081 -
2010-03-18 13:26:08 +00:00
ask
036bbd7fb2 TAChart: Use DrawLabels procedure instead of duplicate code in TBarSeries.Draw
git-svn-id: trunk@24078 -
2010-03-18 11:11:57 +00:00
ask
883b9df3e0 TAChart: Minor refactoring
git-svn-id: trunk@23469 -
2010-01-15 13:32:35 +00:00
ask
53892fe909 TAChart: Add axis transformations and ability to bind series to axises.
This implements most of the issue #13832, although the interface
is very crude yet.

git-svn-id: trunk@23217 -
2009-12-21 16:23:56 +00:00
ask
e63e1febd5 TAChart: Convert Series.UpdateBounds methods to Series.GetBounds.
The logic for updating centralized in Graph.UpdateExtent procedure.

git-svn-id: trunk@23211 -
2009-12-21 09:26:28 +00:00
ask
28506dad55 TAChart: Extract GetGraphPointX function
git-svn-id: trunk@23207 -
2009-12-20 16:46:14 +00:00
ask
0bc78d689a TAChart: Convert some literals to named constants
git-svn-id: trunk@22420 -
2009-11-04 01:26:14 +00:00
ask
85a6d9eae3 TAChart: Use overloaded operator= instead of LCLProc.CompareMethods
git-svn-id: trunk@22376 -
2009-11-02 01:11:56 +00:00
ask
6f487b17a3 TAChart: Add TFuncSeries.DomainExclusions property
git-svn-id: trunk@22374 -
2009-11-02 00:57:16 +00:00
mattias
c7114afbc4 tachart: fixed utf-8 encoding
git-svn-id: trunk@22167 -
2009-10-14 08:59:14 +00:00
mattias
0b7468f33e tachart: fixed method setters
git-svn-id: trunk@22166 -
2009-10-14 08:58:44 +00:00
ask
4f525db58b TAChart: Fix memory leaks
git-svn-id: trunk@22145 -
2009-10-13 14:23:36 +00:00
ask
07eff61bbc TAChart: Remove unused units. Sort series methods alphabetically.
git-svn-id: trunk@22090 -
2009-10-09 16:44:26 +00:00
ask
6cbc0b7456 TAChart: Remove SeriesColor property from TBasicChartSeries.
Implement it only for those descendants where it makes sense.

git-svn-id: trunk@22089 -
2009-10-09 15:32:29 +00:00
ask
63b043a6c4 TAChart: Allow to use reticule for area and bar series.
* Move TLineSeries.GetNearestPoint implementation to TBasicPointSeries class
* Add UseReticule property, default it to true for line series
* Update demo

git-svn-id: trunk@22011 -
2009-10-03 23:12:38 +00:00
ask
2d9766a528 TAChart: Update chart on AreaBrush and AreaLinePen changes.
* Remove unneeded AreaPen.Visible property
* Whitespace fixes

git-svn-id: trunk@22009 -
2009-10-03 22:37:46 +00:00
ask
4abec83a51 TAChart: Add TPieSeries.Exploded property
git-svn-id: trunk@21907 -
2009-09-28 15:45:34 +00:00
ask
dc0f603493 TAChart: Move source-related getters and setters from TLineSeries to TChartSeries.
Sort the rest of TLineSeries methods alphabetically.

git-svn-id: trunk@21903 -
2009-09-28 13:13:10 +00:00
ask
c3acc13054 TAChart: Replace TChartSeries.GetCoords procedure with GetGraphPoint function
git-svn-id: trunk@21901 -
2009-09-27 16:07:43 +00:00
ask
33343e7d67 TAChart: Minor cleanups:
Move ShowInLegend initialization into TCustomChartSeries.
  Add empty override for TUserDrawnSeries.GetLegendItems.

git-svn-id: trunk@21900 -
2009-09-27 15:24:39 +00:00
ask
73ae5dc715 TAChart: Inherit TLine from TCustomChartSeries instead of TBasicPointSeries
git-svn-id: trunk@21899 -
2009-09-27 15:07:24 +00:00
ask
b3570afa1e TAChart: Trivial hint fixes
git-svn-id: trunk@21892 -
2009-09-27 11:28:36 +00:00
ask
50cc9941e0 TAChart: Extract TPieSeries.SliceColor function. Remove MaxColor constant.
git-svn-id: trunk@21889 -
2009-09-27 08:22:27 +00:00
ask
93c6ee37a6 TAChart: Fix brush settings in pie series drawing
git-svn-id: trunk@21888 -
2009-09-27 08:13:42 +00:00
ask
4101d61d99 TAChart: Refactor legend drawing
git-svn-id: trunk@21887 -
2009-09-27 07:02:03 +00:00
ask
5861a1b4dd TAChart: Add TChartLegend.Spacing property instead of hard-coded constant
git-svn-id: trunk@21867 -
2009-09-25 15:27:07 +00:00
ask
dedd0e04fd TAChart: Add TLineSeries.LineType property.
ShowLines property is now deprecated and retained for backwards compatibility only.
Based on patch by Andrea Mauri

git-svn-id: trunk@21852 -
2009-09-25 01:05:23 +00:00
ask
e14b665868 TAChart: Add TUserDrawnSeries class
git-svn-id: trunk@21826 -
2009-09-22 16:56:09 +00:00
ask
c826d70f2d TAChart: Inherit TFuncSeries from TCustomChartSeries to reduce code duplication
git-svn-id: trunk@21825 -
2009-09-22 16:36:02 +00:00
ask
4209ed3b45 TAChart: Extract TChartSeries class into a new TACustomSeries unit
git-svn-id: trunk@21817 -
2009-09-22 12:53:30 +00:00
ask
e1f5717199 TAChart: Add TChartSeries.OnGetMark event
git-svn-id: trunk@21805 -
2009-09-21 16:21:15 +00:00
ask
a1248af92d TAChart: Improve drawing of area series
* Extract NormalizeRect procedure
* Fix and simplify TAreaSeries.Draw 

git-svn-id: trunk@20651 -
2009-06-17 14:59:33 +00:00
ask
a81b58fb8b TAChart: Minor refactoring.
git-svn-id: trunk@20634 -
2009-06-15 14:08:56 +00:00
ask
e8953985b2 TAChart: Bar drawing improvements.
* Extract RectIntersectsRect and ExpandRange procedures.
* Fix various issues with zoomed display of bar series.
* Allow variable-width bars.
* Replace hack in extent calculation with correct code.
* Remove auto-adjustment of bar width to a multiple bar series.
  This was an ugly hack and should be re-implemented properly later.

git-svn-id: trunk@20633 -
2009-06-15 14:04:55 +00:00
ask
db62e824ab TChart: Fix drawing of line series under the large zoom.
* Extract LineIntersectsRect function. 
* Introduce RoundChecked function.
* Mark connectors are now drawn below series pointers.

git-svn-id: trunk@20624 -
2009-06-14 06:47:22 +00:00
ask
05136fc2e5 TAChart: Add Axis.Title.Distance property. Minor refactoring.
git-svn-id: trunk@20404 -
2009-06-04 15:58:58 +00:00
ask
9a999ed80e TAChart: Add TLineSeries.LinePen property. Update demo.
git-svn-id: trunk@20222 -
2009-05-26 03:10:27 +00:00
ask
e80e98c3cc TAChart: Sort class members
git-svn-id: trunk@20221 -
2009-05-26 02:59:54 +00:00
ask
62cc5113b7 TAChart: Add support for chart source caching
* Add TListChartSource.CopyForm procedure
* Make TChart.ListSource public
* Update demo

git-svn-id: trunk@20219 -
2009-05-26 02:49:08 +00:00
ask
421cb0e7aa TAChart: Correctly refresh db-aware chart after dataset changes.
* Add BeforeDraw/AfterDraw procedures to series and sources
* Preserve dataset cursor position while drawing db-aware Series
* Update chart after deleting a record

git-svn-id: trunk@20216 -
2009-05-26 02:21:39 +00:00
ask
28d862e408 TAChart: Do not crash after removing a referenced chart source.
git-svn-id: trunk@20158 -
2009-05-24 07:17:39 +00:00
ask
39ae87f65f TAChart: Minor cleanups and fixes
git-svn-id: trunk@20157 -
2009-05-24 06:47:06 +00:00
ask
c17a63df84 TAChart: Notify series about chart source changes.
* Add minimal Model-View style infrastructure
* Properly support many series with same source

git-svn-id: trunk@20154 -
2009-05-24 06:19:54 +00:00
ask
932b2a5392 TAChart: Improve color handling for individual data points.
git-svn-id: trunk@20153 -
2009-05-24 02:35:11 +00:00
ask
e93779cdaa TAChart: Move clTAColor to TAChartUtils. Fix error message.
git-svn-id: trunk@20151 -
2009-05-24 01:38:30 +00:00
ask
1421f1836b TAChart: Fix bugs in processing of empty extents.
git-svn-id: trunk@20137 -
2009-05-23 04:13:01 +00:00
ask
d8bc38d03f TAChart: Improve Extent processing for series.
* Move Extent calculation and caching to TListChartSource class.
* Replace TChartSeries.{X/Y}Graph{Min/Max} by Extent property.
* Various fixes related to extent cache coherence.

git-svn-id: trunk@20136 -
2009-05-23 04:01:13 +00:00