Git Product home page Git Product logo

inkscape-chartscape's Introduction

chartscape

Inkscape extension to create charts. For the time being, it's possible to create just pie charts. This extension is written in Python. You'll need a Python interpreter in order to use it. This code was written 4 years ago and I was a young developer on that time, so, sorry for ugly code or bugs.

Install

Copy files chartscape.inx and chartscape.py to your Inkscape extensions directory.

Usage

Open Inkscape (reopen it if it was already opened before installing the extension) and click on Extensions > Render > Chartscape.

Choose a title, the values for the pie chart (separated by commas), and the diameter. Click 'OK'.

A whole chart will be rendered, grouped. You can ungroup and edit each part of the chart separately.

To Do

  • Ideally, a refactoring, even to make the code more beautiful
  • Simplify setAttribute calls
  • Modularization
  • Add new charts (line, bars, etc.)
  • Add more options (chart type, show legend, etc.)
  • Review code comments
  • Improve percentages positions (bug in case of a graph that begin with a option more than 50%)
  • Fix bug in calculation of rvector then module is zero (Eg: 40 15 25)
  • Fix bug: legend label is overwrite when has equal values (Eg: 35 10 10 20, legend label of second '10' is overwritten by first)

Thanks

Thanks to my friends:

  • Leandro Andrade, for correcting the percentages positions and add support to UTF-8
  • Melissa Wen, for general improvements
  • Aurélio Heckert, which presented to me the awesome world of Inkscape extensions development

inkscape-chartscape's People

Contributors

caiosba avatar

Watchers

 avatar  avatar  avatar  avatar

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.