Skip to main content

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 Muptiple 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:

  1. No two graph name can be same
  2. Number of values on y-axis must be same as x-axis
  3. Graphs Available
    1. 'bar'
    2. 'line'
    3. 'polar'
    4. 'doughnut'
    5. 'pie'

Sampple

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.0.9.tar.gz (70.0 kB view details)

Uploaded Source

Built Distribution

pychartweb-1.0.9-py3-none-any.whl (69.3 kB view details)

Uploaded Python 3

File details

Details for the file pychartweb-1.0.9.tar.gz.

File metadata

  • Download URL: pychartweb-1.0.9.tar.gz
  • Upload date:
  • Size: 70.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for pychartweb-1.0.9.tar.gz
Algorithm Hash digest
SHA256 29db923e345ba478c772aaf2b9919691f6530f3b34fbedb5054b000ff100f4b3
MD5 eb4e2a5dbc03bca2d3ac37a97d3de28d
BLAKE2b-256 d787521cf470bf85a4f2b1a9e2bf1422ecb41470a1ebd880038acbe293cea12e

See more details on using hashes here.

File details

Details for the file pychartweb-1.0.9-py3-none-any.whl.

File metadata

  • Download URL: pychartweb-1.0.9-py3-none-any.whl
  • Upload date:
  • Size: 69.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.6

File hashes

Hashes for pychartweb-1.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 417d3374bcdcc05b134626f60ee8aae7a8b0a2a5777d5ee2a7c31316932a3d3f
MD5 1dd1ce827ffc1ae36aec19a13d04f4d9
BLAKE2b-256 06bd2a4a927d3344736188f24e98337e74b10555534bdbb2d2d988f34c799c08

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page