Giter VIP home page Giter VIP logo

ajofc's Introduction

AJOFC stands for "Another Java API for Open Flash Chart 2" :)

关于OpenFlashChart的使用,请参考官方教程

java程序怎么写?

答:非常简单,比如画折线图:

// 声明一个数组,也可以是个List
Integer[] values = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
// 实例化一个JLineChart对象
JLineChart lineChart = new JLineChart();
// 添加一条折线
lineChart.addLine(values);
// 打印出来
System.out.println(lineChart.toString());
// JLineChart类是一个给用户使用的门面类,除了添加折线,里面还有各种各样的功能,
// 比如设置折线颜色,动画效果,XY轴的文字和样式,坐标点样式等等

画饼状图,同理:

// 声明一个数组,也可以是个List
Integer[] values = { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 };
// 实例化一个JPieChart对象
JPieChart pieChart = new JPieChart();
// 添加一个饼图
pieChart.setValues(values);
// 打印出来
System.out.println(pieChart.toString());
// 同样,JPieChart类是一个给用户使用的门面类,里面还有其他很多功能,
// 详细说明可以查看方法上的注释

目前完成的是折线图,饼状图和柱状图,其他图形的接口还没有完成,敬请期待~

ajofc's People

Contributors

vaporz avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

xyzal xiaomi

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.