Skip to content

Classes to easily draw a beautiful enough pie chart

Notifications You must be signed in to change notification settings

SlivTaMere/JavaPieChart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

JavaPieChart

Draws pie chart looking like

Instanciate jpc.JavaPieChart with a Map between the labels and the values.
It extends JPanel to integrate it easily in Swing UI.
See the render() method to write the pie chart to an image.

Try the example by running the main in jpc.ui.ChartMod

When used as a JPanel the pie chart can be modify at run time:

  • Double-click to change the color of a slice.
  • Drag and move top/bottom to rotate the chart.
  • Drag and drop labels to move them.
  • Double-click labels to edit them (the label becomes red). Hit escape when finished.

About

Classes to easily draw a beautiful enough pie chart

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages