Code Monkey home page Code Monkey logo

roughviz's Introduction

roughviz

roughviz

roughviz is a python visualization library for creating sketchy/hand-drawn styled charts.

forthebadge

Available Charts

  • Bar (roughviz.bar)
  • Horizontal Bar (roughviz.barh)
  • Pie (roughviz.pie)
  • Donut (roughviz.donut)
  • Stacked Bar (roughviz.stackedbar)

Installation

PyPI PyPI - Downloads

pip install roughviz

Usage

badge

badge

API

The API Documentation is available on: roughviz wiki

Future Plans

  • Exception Handling
  • Add Chart: Histogram
  • Add Chart: Scatter
  • Add Chart: Bubble Chart
  • Add Chart: Line
  • Advance CSS control capabilities

Based on

roughViz.js

License

License: MIT

Copyright (c) 2019 Hannan Satopay

roughviz's People

Contributors

hannansatopay avatar peterbe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

roughviz's Issues

A quick demo

I couldn't get it to work on Python until I investigated the source code to realise that it has to be run in Jupyter notebook because it works with HTML. Here is a sample code to be run in Jupyter notebook:

import roughviz
import pandas as pd
from IPython.display import display, HTML

d = {'col1': [1, 2, 3, 4, 5], 'col2': [3, 4, 10, 2, 0.9]}
df2 = pd.DataFrame(data=d)

data = roughviz.bar(df2["col1"].values, df2["col2"].values)
display(HTML(data.data))

Obviously negative values do not work with the donut and pie charts (works with the bar[h], but not sure about their showing limits), but it would be useful to show an error rather than freezing and breaking down!

Thank you for your work.

AttributeError: module 'roughviz' has no attribute 'bar'

import pandas as pd
import roughviz
from roughviz import charts
d = {'Year': ['1980', '1981', '1982'], 'A': [3, 4, 10]}
df = pd.DataFrame(data=d)
roughviz.bar(df["Year"], df["A"], axisRoughness = 0.7, axisStrokeWidth = 0.7, roughness=2.3, highlight="gray")

Result:
Traceback (most recent call last):
File "", line 1, in
AttributeError: module 'roughviz' has no attribute 'bar'

Plot save function

Thank you for the awesome work!
Could you please consider adding the plot save function, maybe as png or svg.
Thanks again.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.