Search found 20 matches

by raj_jfree
Mon Nov 23, 2009 9:07 am
Forum: JFreeChart
Topic: Barchart with 3 values
Replies: 1
Views: 2151

Barchart with 3 values

Hi, I need to create a bar chart with these data. final double[][] data = new double[][] { { 10, 25, 35 } }; final double[][] count = new double[][] { { 40, 30, 20 } }; String[] columnKeyPrefix = new String[] { "Jan", "Feb", "Mar" }; my x-axis is jan,feb ,mar and my y-axis should in the data range ....
by raj_jfree
Thu Oct 29, 2009 2:48 am
Forum: JFreeChart
Topic: sliding bar chart
Replies: 3
Views: 4209

Re: sliding bar chart

refer slidingcategorydatasetdemo1.java and slidingcategorydatasetdemo2.java ....
by raj_jfree
Fri Oct 23, 2009 11:42 am
Forum: JFreeChart
Topic: CategoryAxis values in barchart which uses custom renderer
Replies: 2
Views: 4420

Re: CategoryAxis values in barchart which uses custom renderer

Thanks for the reply i have done this way private CategoryDataset createDataset() { final double[][] data = new double[][] { { 4.0, 3.0, 3.0, 6.0 } }; String[] columnKeyPrefix = new String[] { "30", "60", "90", "Above 90" }; DefaultCategoryDataset dataset = new DefaultCategoryDataset(); for (int r =...
by raj_jfree
Fri Oct 23, 2009 11:40 am
Forum: JFreeChart
Topic: Tooltip and URL display..
Replies: 0
Views: 1765

Tooltip and URL display..

Hi, when i am creating a chart and using ChartUtilities.writeChartAsJPEG(out, jfreechart, 600, 400); to display tools tips and url are not displayed. but when i store the image to file system and write it back its working. final File file = new File(request.getRealPath("/BarChart.png")); ChartUtilit...
by raj_jfree
Thu Oct 22, 2009 6:43 am
Forum: JFreeChart
Topic: CategoryAxis values in barchart which uses custom renderer
Replies: 2
Views: 4420

CategoryAxis values in barchart which uses custom renderer

Hi, I tried to create a barchart using categorydataset and categoryplot.. it uses CategoryAxis for domainAxis, ValueAxis for rangeAxis i want to display my own category axis values instead of the one which are generated like category1, category2, category3... Commented with red color in the code ......
by raj_jfree
Thu Oct 22, 2009 6:34 am
Forum: JFreeChart
Topic: Which dataset to use
Replies: 5
Views: 6026

Re: Which dataset to use

Thanks paradoxoff ... i have done with it below is my final code for generating.... package com.iam.controllers; import java.awt.Color; import java.awt.Font; import java.awt.GradientPaint; import java.io.File; import java.io.PrintWriter; import java.io.Serializable; import java.math.BigDecimal; impo...
by raj_jfree
Tue Oct 20, 2009 10:51 am
Forum: JFreeChart
Topic: can i generate bubble chart using these data
Replies: 0
Views: 1912

can i generate bubble chart using these data

Hi I have these 3 datas ,is it possible to draw bubble chart using this data.. if i have only these three datas can i draw the bubble chart double ad1[] = { 10, 20, 30, 40 }; //--- y axis double ad2[] = { 20, 25, 30, 39 }; // --- total (count inside bubble) String as[] = {"one","two","three","four"}...
by raj_jfree
Tue Oct 20, 2009 10:49 am
Forum: JFreeChart
Topic: Which dataset to use
Replies: 5
Views: 6026

Re: Which dataset to use

Hi, I have used DefaultXYZDataset and XYBubbleRender these is the class i have written. I have values double ad[] = { 50,100,150,200 }; // i don't have this array just for testing i have used it double ad1[] = { 10, 20, 30, 40 }; // y axis double ad2[] = { 20, 25, 30, 39 }; // total (count inside bu...
by raj_jfree
Tue Oct 20, 2009 3:35 am
Forum: JFreeChart
Topic: Which dataset to use
Replies: 5
Views: 6026

Which dataset to use

Hi,
Which dataset i need to use to create bubble chart where my domainAxix are Strings,RangeAxis is double .
help me out to proceed.
by raj_jfree
Mon Oct 19, 2009 4:32 am
Forum: JFreeChart
Topic: Barchart Tooltip and URL
Replies: 6
Views: 12582

Re: Barchart Tooltip and URL

public ModelAndView handleRequest(HttpServletRequest request, HttpServletResponse response) throws Exception { Map mapCustomer = new HashMap(); mapCustomer.put("success", true); List list = new ArrayList(); try { class LabelGenerator extends StandardCategoryItemLabelGenerator { private static final...
by raj_jfree
Mon Oct 19, 2009 4:28 am
Forum: JFreeChart
Topic: Bubble chart
Replies: 0
Views: 1907

Bubble chart

Hi, I need to create a bubble chart as below.. i had seen the examples for bubble chart all the coordinates are in double format,but my x-axis is string how can i go with this. required: http://i35.tinypic.com/v484g2.jpg the value inside the bubble is number of items falling in that range of x and y...
by raj_jfree
Wed Oct 14, 2009 2:45 am
Forum: JFreeChart
Topic: ServletOutputStream
Replies: 1
Views: 2384

Re: ServletOutputStream

U can refer this thread ..but i have done it using spring MVC controller
i think it may help you...

http://www.jfree.org/phpBB2/viewtopic.php?f=3&t=29303
by raj_jfree
Mon Oct 05, 2009 2:25 am
Forum: JFreeChart
Topic: problem in Displaying a tooltip using servlet
Replies: 3
Views: 3697

Re: problem in Displaying a tooltip using servlet

praveen & alloy can try using this way,BarChart.png is created in the specified path and then displaying as writeimageMap as shown... final ChartRenderingInfo info = new ChartRenderingInfo(new StandardEntityCollection()); final File file = new File(request.getRealPath("/BarChart.png")); ChartUtiliti...
by raj_jfree
Fri Oct 02, 2009 2:15 am
Forum: JFreeChart
Topic: URLGenerator and Javascript
Replies: 3
Views: 6871

Re: URLGenerator and Javascript

Thanks Richard...i am done with it.... I have one more requirement xyitemrenderer.setURLGenerator(new StandardXYURLGenerator("javascript:alert('1');")) ; in this javascript function javascript:function( ? ) i need to pass thew values dynamically is it possible ..i mean is there any URLGenerator for ...
by raj_jfree
Thu Oct 01, 2009 11:50 am
Forum: JFreeChart
Topic: URLGenerator and Javascript
Replies: 3
Views: 6871

URLGenerator and Javascript

Hi, i want to invoke a JavaScript function on clicking the bubble from bubble chart. i had set the URL as below xyitemrenderer.setURLGenerator(new StandardXYURLGenerator("javascript:alert('1');")); This is returning me href="javascript:alert('1');?series=0&item=0" i want only href="javascript:alert(...