Commit Graph

5 Commits

Author SHA1 Message Date
bugmaster b0a8358821 Fixed a data aliasing issue where LineStyle.solid and other constants like it were shared globally across all charts. Changed LineStyle.solid() and others into class methods, and changed DataSeries.style to automatically call these methods in order to correct legacy code.
git-svn-id: http://graphy.googlecode.com/svn/trunk@77 30582518-8026-11dd-8d1c-71c7e1663bfb
2009-06-26 22:35:13 +00:00
zovirl@zovirl.com b5c4c31f10 fix a couple small bugs: AddSeries was broken (even though it is deprecated it should at least work), extra_params could not override chbh. TODO: add regression tests
git-svn-id: http://graphy.googlecode.com/svn/trunk@65 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-24 00:56:49 +00:00
zovirl@zovirl.com e5232e92cc Harmonize styles & colors across charts. May break existing code, but only if
it is using DataSeries directly.
- BarStyle renamed to BarChartStyle
- Style objects added to data series in BarChart and PieChart
- Color moved from DataSeries to the style objects.
- Separated encoder logic for handling color & line style.



git-svn-id: http://graphy.googlecode.com/svn/trunk@58 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-23 16:19:58 +00:00
zovirl@zovirl.com 27f67a5750 WARNING: This breaks your code! Change argument order to be consistent across:
- LineChart.AddLine
- BarChart.AddBars
- PieChart.AddSegment, AddSegments, and __init__
- pie_chart.Segment.__init__
- DataSeries.__init__

The new order, used everywhere, is:
  points, label, color, style

I've tried to add warning messages in, but the heuristic is not perfect.  We
also don't try to correct the older usage (since I couldn't find a way to do
that without occasionally affecting the newer usage)



git-svn-id: http://graphy.googlecode.com/svn/trunk@53 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-22 22:53:50 +00:00
zovirl@zovirl.com a0b623fbf6 import 1st version of code
git-svn-id: http://graphy.googlecode.com/svn/trunk@16 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-09-30 21:35:47 +00:00