Socket
Book a DemoInstallSign in
Socket

pychartweb

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pychartweb

Display Graph

pipPyPI
Version
1.1.1
Maintainers
1

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'

Sample

Check out: https://github.com/Harsh-singh586/pygraph

Keywords

python

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts