Mounier Florian
3f999628fa
Merge pull request #78 from sirlark/xml_filters
...
ADDS HOOK FOR XML MODIFICATION PRE-RENDERING
11 years ago
James Dominy
bb96eab106
ADDS HOOK FOR XML MODIFICATION PRE-RENDERING
...
An XML filter can be defined as a function taking a single argument,
supplied as the 'svg' atribute of the graph (an lxml etree?) and
returning a modified version/copy thereof.
XML filters can be added to a plot using the new plot method
add_xml_filter(func).
The hook that executes any filters added to the plot, executes them in
order immediately prior to conversion to a string, in the class method
svg.render, and also immediately prior to returning a copy of the tree
in BaseGraph.render_tree
11 years ago
Mounier Florian
2b2a3588f7
Merge pull request #70 from fayizk1/master
...
Added new style - SolidColorStyle
11 years ago
Florian Mounier
32cb52a419
Add new README
11 years ago
Florian Mounier
66041bdb54
Clean code + fix test
11 years ago
Florian Mounier
766c78d46a
Merge branch 'master' into donut_label_with_links
...
Conflicts:
setup.py
11 years ago
Mounier Florian
06b665a447
Merge pull request #74 from ralphbean/master
...
Explicitly decode source for py3.
11 years ago
Ralph Bean
4b94b14412
Explicitly decode source for py3.
11 years ago
Fayiz Musthafa
deb68e7336
Added new style - SolidColorStyle
11 years ago
Fayiz Musthafa
b5662a19c3
Added new style -
11 years ago
Florian Mounier
0e1a7259db
Merge branch 'master' into donut_label_with_links
11 years ago
Jean-Marc Martins
e226aa5405
Fighting versus git
11 years ago
Jean-Marc Martins
921352c093
Removes from ghost
11 years ago
Jean-Marc Martins
be5ad45048
Adds supranations
11 years ago
Jean-Marc Martins
64e17f48b4
Merge branch 'master' of ssh+git://github.com/cristen/pygal
11 years ago
Jean-Marc Martins
3422462511
Supranations
11 years ago
Jean-Marc Martins
a3ba1dacdf
Stupid forgotten file
11 years ago
Florian Mounier
61441a2490
Merge remote-tracking branch 'cleder/master' into donut_label_with_links
11 years ago
Jean-Marc Martins
924c1284fb
Merge branch 'master' of ssh+git://github.com/cristen/pygal
...
Conflicts:
pygal/i18n.py
11 years ago
Jean-Marc Martins
f781b56a7a
Fixes supranational code leaving ghost generic
11 years ago
Jean-Marc Martins
a2448a4171
Adds supranational areas to pygal
...
available areas are defined in the i18n file
it can be used like this:
- add("Legend", "europe")
- add("Legend", ["europe", "oecd"])
- or even add("Legend", {"nafta", 1000}) if you wish to add a value for the
entire area
11 years ago
Jean-Marc Martins
3dead6e0a8
Adds supranational areas to pygal
...
available areas are defined in the i18n file
it can be used like this:
- add("Legend", "eur")
- add("Legend", ["eur", "oecd"])
- or even add("Legend", {"nafta", 1000}) if you wish to add a value for the
entire area
11 years ago
Jean-Marc Martins
699422c131
Fixes tests on the worldmap
11 years ago
Florian Mounier
3c78e46bd8
Fix forgotten check of dict type
11 years ago
Jean-Marc Martins
e2fac5b70a
Merge remote-tracking branch 'upstream/master'
11 years ago
Jean-Marc Martins
f8b9b84728
Fix error if the raw_values is empty
11 years ago
Florian Mounier
e9f36b3617
Change list like check (which did not worked in python 3)
11 years ago
Florian Mounier
447ddf68ee
Fix tests of datey and worldmap
11 years ago
Florian Mounier
07facb7df1
Improve perf
11 years ago
Christian Ledermann
d378139bc8
cleanup, sorry for the premature pull request, but this is really the final time
11 years ago
Christian Ledermann
e3f28caaf9
after cosiderations and tests it is better to change the orders of the bars instead of the legend. This is probably more of what a user would expect. fixes #55 all tests are passing
11 years ago
Christian Ledermann
d425006037
add tests
11 years ago
Florian Mounier
69991cf3fe
Add simple perf tool
11 years ago
Mounier Florian
4b4fa9d7b3
Merge pull request #59 from signed0/patch-1
...
Use hasattr instead of dir
11 years ago
Nathan Villaescusa
fdb1b18f14
Use hasattr instead of dir
...
`dir()` is insanely slow since it has to create and sort a list each time. Switching to `hasattr` provides a nice 10x speedup.
11 years ago
Mounier Florian
066450b5e6
Merge pull request #58 from signed0/master
...
Prevent automatic x-axis label truncation from being less than 1
11 years ago
Florian Mounier
cc0ab1339a
Fix #49 and add a test for it
11 years ago
Florian Mounier
5f2a78795e
Add histogram chart type. Fixes #48
11 years ago
Nathan Villaescusa
bcd5b56253
Prevent truncation ever being less than 1
...
When there are more x-axis labels than there are pixels of space the division will result in `truncation` being equal to zero. This causes truncation of x-axis labels to be completely bypassed as the `truncate()` function ignores truncations that are equal to 0.
This patch makes 1 the minimum which means that in the worst case all the x-axis labels will be displayed as '...'. I think this is preferable to having the full labels positioned on top of one another.
11 years ago
Christian Ledermann
615c9c3e50
reverse the legend in horizontal bar. Adresses #56
12 years ago
Christian Ledermann
14d9d787bb
add inner_radius for piechart fixes #42 does not work for Multi-series pies
12 years ago
Christian Ledermann
ca4e25908d
add ability to add links to legend
12 years ago
Florian Mounier
643373c8d9
Change uri test to make it work on windows. Fix #47
12 years ago
Florian Mounier
fb1cac78f9
Add show_{x,y}_guides options fixes #29
12 years ago
Florian Mounier
953aa19df8
Fix cabaret and pygal_gen
12 years ago
Florian Mounier
71af33d835
Merge branch 'master' of github.com:Kozea/pygal
12 years ago
Florian Mounier
d2e888598b
Fix Sweden + minor clean in worldmap. Fixes #43
12 years ago
Guillaume Ayoub
54968e20d3
Use sitepackages=True for tox
12 years ago
Guillaume Ayoub
62a2349bc8
Allow only 'quadratic' or 'cubic' as interpolation value
12 years ago
Florian Mounier
1c98074462
Fix in colors
12 years ago