Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rhemon/waterfall
Data Visualization
https://github.com/rhemon/waterfall
Last synced: 23 days ago
JSON representation
Data Visualization
- Host: GitHub
- URL: https://github.com/rhemon/waterfall
- Owner: rhemon
- Created: 2014-12-15T10:53:08.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2014-12-15T12:18:48.000Z (about 10 years ago)
- Last Synced: 2024-10-15T11:08:55.921Z (2 months ago)
- Language: Python
- Size: 273 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Waterfall
==========This module applies another way of Data Visualization - Find out about it in Wikipedia
To get access to it, download it and keep it in your project folder, and import it.
```
from WaterfallChart import WaterfallA, WaterfallXY
```
There are altogether two ways to apply it and get the Waterfall Chart.
One is by giving the amounts, up and down, from which it will form the chart.
Example:
```
data = {'x':['Product Revenue', 'Services Revenue', 'Fixed Costs', 'Variable Costs', 'Total'],
'y':[420,210,-170,-140], # You can either give at the end for total, but you don't have to, it will automatically do that
'xLabel': None, # XLabel is optional
'yLabel': None } # So is YLabel
chart = WaterfallA(data, title="Company Profit 2008", winTitle="Profit's Waterfall View")# If you don't want total, make sure len(y) == len(x) and give total=False, and title and winTitle both are optional
# chart.config_title("Title name") You can use to config the title, later on also
chart.display() # To display the chart
```
The other way, is by givving the plots. I am not sure but there might be a situation, where you have the plots, all you need is the
chart. That is why you can use XY.
Example:
```
data = {'x':['Product Revenue', 'Services Revenue', 'Fixed Costs', 'Variable Costs', 'Total'],
'y':[420,730,500,140], # You can either give at the end for total, but you don't have to, it will automatically do that
'xLabel': None, # XLabel is optional
'yLabel': 'Money(USD)' } # So is YLabel
chart = WaterfallXY(data)
chart.display()
```