Florian Mounier
66041bdb54
Clean code + fix test
11 years ago
Fayiz Musthafa
deb68e7336
Added new style - SolidColorStyle
11 years ago
Fayiz Musthafa
b5662a19c3
Added new style -
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
3422462511
Supranations
11 years ago
Jean-Marc Martins
a3ba1dacdf
Stupid forgotten file
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
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
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
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.
12 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
d2e888598b
Fix Sweden + minor clean in worldmap. Fixes #43
12 years ago
Florian Mounier
1c98074462
Fix in colors
12 years ago
Florian Mounier
4427daf8e4
Prefix svg for multiple raw includes in html. Maybe related to #40
12 years ago
Anaèle Digoin
0d0e55ca34
new set of color
12 years ago
Florian Mounier
a88bbf7366
Fix for python 3 too
12 years ago
Florian Mounier
6003e65ef1
Fix edge cases with datey and secondary axes
12 years ago
Florian Mounier
6da43afacb
Include tests on secondary axis
12 years ago
Nathan Villaescusa
75c83b07f8
Fix bug with None y-values for charts with a secondary y-axis.
...
Otherwise the following exception is thrown:
```
Exception: unsupported operand type(s) for -: 'NoneType' and 'float'
```
12 years ago
Florian Mounier
4fb327e030
Add the ability to inheritate a parametric style from another style
12 years ago
Anaèle Digoin
54c4b88e65
create news theme color -> bluestyle
12 years ago
Florian Mounier
95eef057db
Change default amplitude of variation for parametric style depending on operation
12 years ago
Florian Mounier
769a5e962e
Add parametric styles
12 years ago
Anaèle Digoin
941cba9c55
to do 7 variations color for charts
12 years ago
Florian Mounier
953b3810e3
Add some color helpers
12 years ago
Florian Mounier
6e76b3c085
Fix sparktext Python3... 2nd edition
12 years ago
Florian Mounier
26178bff1b
Fix sparktext Python3...
12 years ago
Florian Mounier
9ae3e66ddb
Fix sparktext
12 years ago
Florian Mounier
a7d3a090e0
Add test case for issue #35
12 years ago
Florian Mounier
b822892a89
Fix darken/lighten
12 years ago