-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for negative bars and columns. Closes #52.
- Loading branch information
Showing
3 changed files
with
29 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,11 @@ | ||
import leather | ||
|
||
data1 = [ | ||
(0, 3), | ||
(4, 5), | ||
(7, 9), | ||
(8, 4) | ||
data = [ | ||
(-3, 'foo', -3), | ||
(5, 'bar', 5), | ||
(-9, 'baz', -9) | ||
] | ||
|
||
data2 = [ | ||
(2, 4), | ||
(7, 3), | ||
(6, 2), | ||
(5, 9) | ||
] | ||
|
||
data3 = [ | ||
(2, 7), | ||
(7, 2) | ||
] | ||
|
||
chart = leather.Chart('Multiple series') | ||
chart.add_dots(data1, name="This is a really insanely long series name......") | ||
chart.add_dots(data2, name="And this one is almost as long!") | ||
chart.add_dots(data3, name="But this one's short.") | ||
chart = leather.Chart('Negative columns') | ||
chart.add_bars(data) | ||
chart.to_svg('test.svg') |