Avatar of dshrenik
dshrenikFlag for United States of America

asked on 

Create charts using Java code

Please let me know if there are any APIs that allow creation of charts (bar graphs / histograms / pie charts, etc) through Java code. At this point of time, I am not particular about the output format  - Excel file / Matlab file / R (Stats language) etc. But, it would be great if something exists for Excel.

The important thing is that I must be able to create a chart through Java code only, and there must not be a requirement for predefined external templates as is the case with jxls.

Thanks!
Java

Avatar of undefined
Last Comment
dshrenik
Avatar of for_yan
for_yan
Flag of United States of America image

JFreeChart
ASKER CERTIFIED SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of for_yan
for_yan
Flag of United States of America image

JFreeChart is the most popular in this area and mkaes very good charts
Avatar of dshrenik
dshrenik
Flag of United States of America image

ASKER

Thanks!

Are there any APIs for Excel?
Avatar of for_yan
for_yan
Flag of United States of America image

Looka at it, I can post the whole PDF manual if you want.
SOLUTION
Avatar of for_yan
for_yan
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of for_yan
for_yan
Flag of United States of America image

There was a lot of questions just toadya bout it in this zone
Avatar of dshrenik
dshrenik
Flag of United States of America image

ASKER

With jxls, we need to create a template.
POI doesnt seem to support charts.
Avatar of for_yan
for_yan
Flag of United States of America image

http://poi.apache.org/ - this is not so for graphs but for read/write MS docs, xls
Avatar of dshrenik
dshrenik
Flag of United States of America image

ASKER

Right. Do we have something for graphs in Excel?
If possible, please post the link to the manual for JFreeChart.
Avatar of for_yan
for_yan
Flag of United States of America image

JXLS is for graphs in Excel created by Java
Avatar of dshrenik
dshrenik
Flag of United States of America image

ASKER

Right. But, the problem with jxls is that it requires a template file. I want to do everything from Java without having to create templates first.
Avatar of for_yan
for_yan
Flag of United States of America image

Type JXLS in the serach here on EE and maybe limit to the latest days - you'll see soem traikls
This is the manual
jfreechart-1.0.13-A4.pdf
Avatar of for_yan
for_yan
Flag of United States of America image

But you can wriote templet in Java with POI first (tjhough it seesm too much work to me - better do them once and use them)
Avatar of dshrenik
dshrenik
Flag of United States of America image

ASKER

That's a nice idea!
Avatar of for_yan
for_yan
Flag of United States of America image

Well, I'm glad you like it - id you need to create them all the time different on the fly, then maybe it is a way
SOLUTION
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Mick Barry
Mick Barry
Flag of Australia image

Think you'll find you can't create templates in POI
SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of dshrenik
dshrenik
Flag of United States of America image

ASKER

@CEHJ:
Could you give me the exact link to the API and some tutorials / examples?

Thanks!
Java
Java

Java is a platform-independent, object-oriented programming language and run-time environment, designed to have as few implementation dependencies as possible such that developers can write one set of code across all platforms using libraries. Most devices will not run Java natively, and require a run-time component to be installed in order to execute a Java program.

102K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo