Display Graph
Project description
pygraph
Developed by Harsh-singh586 2021
Examples of How To Use
import pychartweb
g1 = pychartweb.graph(name , x-xis)
g1.adddata(graph_type , lebel, y-axis, background_color)
g1.adddata(graph_type , lebel, y-axis, background_color)
pychartweb.show([g1])
Example Single Graph
import pychartweb
# Choose One
g1 = pychartweb.graph('first', ['firstval', 'secval'])
g1.adddata('bar', 'test', [4, 3], ['yellow', 'green'])
pychartweb.show([g1])
Example Multiple Graph
import pychartweb
# Choose One
g1 = pychartweb.graph('first', ['firstval', 'secval'])
g1.adddata('bar', 'test', [4, 3], ['yellow', 'green'])
g2 = pychartweb.graph('second', ['firstval', 'secval'])
g2.adddata('bar', 'test', [8, 7], ['yellow', 'green'])
pychartweb.show([g1, g2])
Example Mixed Graph
import pychartweb
# Choose One
g1 = pychartweb.graph('first', ['firstval', 'secval'])
g1.adddata('bar', 'test', [4, 3], ['yellow', 'green'])
g1.adddata('line', 'test', [8, 7], ['red', 'blue'])
pychartweb..show([g1])
You can see your graph on http://localhost:8000
NOTE:
- No two graph name can be same
- Number of values on y-axis must be same as x-axis
- Graphs Available
- 'bar'
- 'line'
- 'polar'
- 'doughnut'
- 'pie'
Check out: https://github.com/Harsh-singh586/pygraph
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pychartweb-1.1.1.tar.gz
(73.8 kB
view hashes)
Built Distribution
pychartweb-1.1.1-py3-none-any.whl
(69.2 kB
view hashes)
Close
Hashes for pychartweb-1.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d6245f2692ca56a0a2b56504d52b961f86f46b0d3d512f40addc1ef92ce98975 |
|
MD5 | f7b6be7434bd9386eadfbe1f5381c8bd |
|
BLAKE2b-256 | 284380d6b1b3c830953e62637d5770870acf23598c70c30eec68ad14bdb663bc |