Wish List
Tags
adobe air ajax coldfusion examples ext flex javascript max2007 misc technology ui
Recent Entries
A Question of Speed
It's a BOY!
Unit Testing Functions that Access Web-Services
TIOBE Reconsiders
jQuery UI's new home
Search
RSS
Subscribe
JFree Chart Custom Tag up on RiaForge
I finally managed to get around and upload Version 1 of my JFree Chart custom tag onto riaforge.
I typically use the import statement when using custom tags in the below examples I have imported the custom tag line so:
Bar Chart

<jf:jfSeries seriesLabel="Series 1" serieslinethickness="3" query="#s1#" itemColumn="column" valueColumn="value" seriesColorHEX='cc0000' colorlist="cc0000,F5A529,999999">
<jf:jfSeries seriesLabel="Series 2" serieslinethickness="3" query="#s2#" itemColumn="column" valueColumn="value" seriesColorHEX='F5A529' colorlist="cc0000,F5A529,999999">
<jf:jfSeries seriesLabel="Series 3" serieslinethickness="3" query="#s3#" itemColumn="column" valueColumn="value" seriesColorHEX='999999' colorlist="cc0000,F5A529,999999">
</jf:jfreechart>
Pie Chart

<jf:jfSeries seriesLabel="Pie Series" serieslinethickness="3" query="#s3#" itemColumn="column" valueColumn="value" colorlist="cc0000,F5A529,999999">
</jf:jfreechart>
Scatter Chart

<jf:jfSeries seriesLabel="Scatter Series 1" serieslinethickness="3" query="#scatter1#" itemColumn="column" valueColumn="value" colorlist="cc0000,F5A529,999999">
<jf:jfSeries seriesLabel="Scatter Series 2" serieslinethickness="3" query="#scatter2#" itemColumn="column" valueColumn="value" seriesColorHEX='F5A529' colorlist="cc0000,F5A529,999999">
<jf:jfSeries seriesLabel="Scatter Series 3" serieslinethickness="3" query="#scatter3#" itemColumn="column" valueColumn="value" seriesColorHEX='F5A529' colorlist="cc0000,F5A529,999999">
</jf:jfreechart>
Gantt Chart

<jf:jfTaskSeries seriesLabel="Project Time Line" serieslinethickness="3" query="#gantt#" startdatecolumn="start" enddatecolumn="end" taskNameColumn="task" PercentCompleteColumn="complete" seriesColorHEX='cc0000' >
</jf:jfreechart>


options is really quite good.
What it buys you is an alternative charting option over cfchart. You can of course
access webcharts directly but using cfchart alone you are limited to 11 chart types.
I also decided to build this as a custom component because we are doing a project where we are integrating a Pentaho Reporting solution which, I believe, uses JFree chart as its charting engine.
can jfreechart create time line charts like this:
http://www.timelinemaker.com/product-samplecharts-...
thanks,
MsJ
i think i found a need for jfree chart, though mind if i ask if you've ever mixed graph types (say line & scatter) in the same chart? if so ever used sparse & dense data series? i need to plot a line chart w/2-3k worth of points as well as a scatter plot with only 2 or 3 points. cfchart interpolates the sparse series to match the dense one & borks the graph completely. a job for jfree chart?
thanks.
Jfree allows you to do overlaid charts which sounds like what you are trying to do.
You can also do multi-axis charts where the 2-3k datapoints can be on one axis, and your 2-3 points on another axis if they have at least one thing in common, if not
then overlaid sounds like the solution.
http://www.java2s.com/Code/Java/Chart/JFreeChartLi...
turns the lines off to create a "scatter" plot ;-)
btw i'm looking at your code & see "returnChartAsImage" attribute but don't see it used anywhere, am i missing something?
thanks.
yeah that, well you see the thing is...erm...It's depreciated yeah thats it!
I decided to go with single attribute createImageMap (true/false) if it's false it returns just the
image if its true it returns an image map.
The next update will have that removed as well as provide for a spider chart.