gowthamsenmca Posted November 12, 2013 Share Posted November 12, 2013 Hi,I am using Jasper Studio 5.5. The Bubble chart is not available directly when we use "html5" chart element.But in the help, they have mentioned that we can create "Bubble" chart using customization options.Can any one please guide me in how to acheive this?Best RegardsGowtham Link to comment Share on other sites More sharing options...
Java_Jasper Posted November 13, 2013 Share Posted November 13, 2013 This link may help get you started:http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/ChartFactory.html#createBubbleChartB. Link to comment Share on other sites More sharing options...
Java_Jasper Posted November 13, 2013 Share Posted November 13, 2013 This link will give a better understanding of the customizaiton options in regards to charts.http://mdahlman.wordpress.com/2010/08/18/chart-customizers-1/Hope this gets you going.B. Link to comment Share on other sites More sharing options...
Java_Jasper Posted November 13, 2013 Share Posted November 13, 2013 import java.text.DateFormat;import java.text.FieldPosition;import java.text.NumberFormat;import java.text.ParsePosition;import java.util.Date; import net.sf.jasperreports.engine.JRAbstractChartCustomizer;import net.sf.jasperreports.engine.JRChart; import org.jfree.chart.JFreeChart;import org.jfree.chart.axis.NumberAxis; public class BubbleDateCustomizer extends JRAbstractChartCustomizer{ public void customize(JFreeChart chart, JRChart jasperChart) { NumberAxis domainAxis = (NumberAxis) chart.getXYPlot().getDomainAxis(); final DateFormat dateFormat = DateFormat.getDateInstance(); domainAxis.setNumberFormatOverride(new NumberFormat() { public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos) { return format((long) number, toAppendTo, pos); } public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos) { return dateFormat.format(new Date(number), toAppendTo, pos); } public Number parse(String source, ParsePosition parsePosition) { throw new UnsupportedOperationException(); } }); } This example was written by Lucian a member on this community.I am posting it as an example of a custom chart. Link to comment Share on other sites More sharing options...
Java_Jasper Posted November 13, 2013 Share Posted November 13, 2013 See commnet above, not sure if comments notify a user of a post. Link to comment Share on other sites More sharing options...
leo.arouca Posted November 15, 2013 Share Posted November 15, 2013 Hey I have the same need for a HTML5 Highchart type Bubble, link to charthttp://www.highcharts.com/demo/bubble-3dThe suggestion in the comments above apparently are related to the Standard chart type bubble, if I am not mistaken.Cheers,Leo Link to comment Share on other sites More sharing options...
Java_Jasper Posted November 15, 2013 Share Posted November 15, 2013 Awesome link! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now