Commit Graph

34 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 d2e474b2c9 fix example in comment
git-svn-id: http://graphy.googlecode.com/svn/trunk@76 30582518-8026-11dd-8d1c-71c7e1663bfb
2009-06-10 20:03:21 +00:00
zovirl@zovirl.com dadaa7dce3 add graphy.__version__
git-svn-id: http://graphy.googlecode.com/svn/trunk@74 30582518-8026-11dd-8d1c-71c7e1663bfb
2009-05-14 23:27:37 +00:00
bugmaster b65d3213c4 Fixed stylistic comments.
I've tried to explain color interpolation a bit better, but I don't know how to do it properly without using math... any ideas ?


git-svn-id: http://graphy.googlecode.com/svn/trunk@73 30582518-8026-11dd-8d1c-71c7e1663bfb
2009-01-13 03:40:07 +00:00
bugmaster 9ba6501f41 Restored the PieChart.AddSegments and PieChart.AddSeries methods, as well as their associated tests.
git-svn-id: http://graphy.googlecode.com/svn/trunk@72 30582518-8026-11dd-8d1c-71c7e1663bfb
2009-01-09 00:58:34 +00:00
bugmaster 21fe010536 *** WARNING ***
This change will very likely BREAK your code if you're using pie charts !
*** WARNING ***

Rewrote the pie chart code to support concentric pie charts and chart angles in Google Chart API. Removed deprecated AddSegments method, and changed the way the data is represented internally in order to bring it more in line with other charts.

(also, fixed some spelling errors)



git-svn-id: http://graphy.googlecode.com/svn/trunk@71 30582518-8026-11dd-8d1c-71c7e1663bfb
2009-01-08 01:25:47 +00:00
zovirl 7078fbcc04 add install notes (sorta) and a quickstart
git-svn-id: http://graphy.googlecode.com/svn/trunk@70 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-31 22:25:06 +00:00
zovirl@zovirl.com e6647f2e0b remove some TODO comments that have already been addressed
git-svn-id: http://graphy.googlecode.com/svn/trunk@69 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-30 15:57:12 +00:00
zovirl@zovirl.com 1111a0768e add tests for AddSeries and chbh in extra_params on bar charts (these are tests for changes in r65
git-svn-id: http://graphy.googlecode.com/svn/trunk@68 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-30 15:54:15 +00:00
bugmaster 29118deb12 Added missing file from the previous change; added bar_size back for backwards compatibility.
git-svn-id: http://graphy.googlecode.com/svn/trunk@67 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-24 21:32:18 +00:00
bugmaster 4a447fb2f4 Changed auto bar sizing to use the newly revealed 'chbh=a,#,#' and 'chbh=r,#,#' options.
TODO: Make sure auto bar sizing does not clobber chbh as a passed-in extra parameter.


git-svn-id: http://graphy.googlecode.com/svn/trunk@66 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-24 10:46:43 +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 53913683a1 add another example using bar charts and multiple axes
git-svn-id: http://graphy.googlecode.com/svn/trunk@60 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-23 16:43:04 +00:00
zovirl@zovirl.com 4f81f79a5a update to avoid deprecation error
git-svn-id: http://graphy.googlecode.com/svn/trunk@59 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-23 16:34:02 +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 32dcb1e9ca fix typo
git-svn-id: http://graphy.googlecode.com/svn/trunk@57 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-23 06:31:28 +00:00
zovirl@zovirl.com 3f5a2a3749 add util.py, missing from r53
git-svn-id: http://graphy.googlecode.com/svn/trunk@55 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-22 22:58:39 +00:00
zovirl@zovirl.com 60b98f16a9 add todo note about creating tests to enforce the common chart API
git-svn-id: http://graphy.googlecode.com/svn/trunk@54 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-22 22:56:26 +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 6f2ca531d4 rename formatter_test.py to match formatters.py (add missing s)
git-svn-id: http://graphy.googlecode.com/svn/trunk@52 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-10 05:40:44 +00:00
zovirl@zovirl.com 0f4bd9fc2d AutoScale now does the Right Thing if you set min/max on chart.right but not chart.left.
git-svn-id: http://graphy.googlecode.com/svn/trunk@51 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-10 05:34:46 +00:00
zovirl@zovirl.com 7653795551 pull out the 1 non-google-api test for pie_chart.py
git-svn-id: http://graphy.googlecode.com/svn/trunk@50 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-10 04:29:46 +00:00
zovirl@zovirl.com bfdb1b22f4 add tests around AutoScale, move some base tests out of the encoder into graphy
git-svn-id: http://graphy.googlecode.com/svn/trunk@48 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-09 06:22:36 +00:00
zovirl@zovirl.com 5ee8451505 ignore .pyc files
git-svn-id: http://graphy.googlecode.com/svn/trunk@47 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-08 17:52:59 +00:00
zovirl@zovirl.com 9b3956627f XHTML fixes in Url() and Img() (Change from Andy Staudacher)
- Img() did not add the necessary quotes for the values of the width and height
  attributes.
- Img()'s src attribute contains reserved HTML characters (& instead of &).
  Fixed by adding the flag 'use_html_entities' to Url() and _EncodeUrl() which
  when set to True HTML-escapes the generated URL (converting &, <, > and " to
  the respective HTML entities).



git-svn-id: http://graphy.googlecode.com/svn/trunk@46 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-06 01:29:31 +00:00
zovirl@zovirl.com 78d7e5a44c add 2 comments
git-svn-id: http://graphy.googlecode.com/svn/trunk@45 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-12-06 01:15:57 +00:00
zovirl@zovirl.com c9e09c430c AddSegment takes size, color, label instead of a Segment object so it matches AddLines and AddBars. Old usage deprecated (but still works).
git-svn-id: http://graphy.googlecode.com/svn/trunk@43 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-11-26 02:03:02 +00:00
bugmaster 5ef11bbd2e Deprecated BarChart.display.style, and changed the code to use BarChart.style, instead. Fixed aliasing bug in _ApplyBarStyle. TODO: figure out how to auto-calculate bar thickness if the chart has axis labels that consume space.
git-svn-id: http://graphy.googlecode.com/svn/trunk@42 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-11-25 07:49:52 +00:00
zovirl@zovirl.com 0f39e0a7d3 split up tests into smaller test modules.
git-svn-id: http://graphy.googlecode.com/svn/trunk@41 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-11-19 02:16:36 +00:00
zovirl@zovirl.com e4c17f1300 split google_chart_api.py into a package with several modules
git-svn-id: http://graphy.googlecode.com/svn/trunk@40 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-11-19 02:10:45 +00:00
zovirl@zovirl.com 7e0201190d ignore *.pyc
git-svn-id: http://graphy.googlecode.com/svn/trunk@39 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-11-15 06:32:25 +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
zovirl@zovirl.com a3ae78eb24 add readme
git-svn-id: http://graphy.googlecode.com/svn/trunk@11 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-09-25 15:27:58 +00:00
(no author) 957fc8b208 Initial directory structure.
git-svn-id: http://graphy.googlecode.com/svn/trunk@1 30582518-8026-11dd-8d1c-71c7e1663bfb
2008-09-11 17:22:20 +00:00