You can subscribe to this list here.
2001 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2002 |
Jan
|
Feb
|
Mar
(2) |
Apr
(1) |
May
|
Jun
(1) |
Jul
(5) |
Aug
(2) |
Sep
(3) |
Oct
(2) |
Nov
(8) |
Dec
(10) |
2003 |
Jan
(1) |
Feb
(5) |
Mar
(15) |
Apr
(29) |
May
(40) |
Jun
(44) |
Jul
(26) |
Aug
(63) |
Sep
(42) |
Oct
(33) |
Nov
(29) |
Dec
(51) |
2004 |
Jan
(34) |
Feb
(15) |
Mar
(32) |
Apr
(26) |
May
(40) |
Jun
(16) |
Jul
(6) |
Aug
(12) |
Sep
(55) |
Oct
(33) |
Nov
(54) |
Dec
(9) |
2005 |
Jan
(3) |
Feb
(7) |
Mar
(12) |
Apr
(3) |
May
(4) |
Jun
(3) |
Jul
|
Aug
(4) |
Sep
(8) |
Oct
(1) |
Nov
(1) |
Dec
(1) |
2006 |
Jan
(1) |
Feb
(7) |
Mar
(4) |
Apr
(2) |
May
(3) |
Jun
(1) |
Jul
(2) |
Aug
|
Sep
(1) |
Oct
(2) |
Nov
(3) |
Dec
(2) |
2007 |
Jan
(7) |
Feb
(6) |
Mar
|
Apr
|
May
(1) |
Jun
(4) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2008 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2009 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2010 |
Jan
|
Feb
(3) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
(2) |
Oct
|
Nov
|
Dec
|
2016 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2017 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Nathaniel G. A. <nat...@ya...> - 2003-06-26 20:24:19
|
The code has not been enabled for line charts yet. It is in the plans for the next release for line charts, point charts, and XY Plots. --- Marcin Gryszkalis <da...@to...> wrote: > Hi > It seems that it's not supported - is there any reason > for that, or just it's waiting to be implemented? > regards > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Marcin G. <da...@to...> - 2003-06-26 20:04:59
|
Hi It seems that it's not supported - is there any reason for that, or just it's waiting to be implemented? regards |
From: Marcin G. <da...@to...> - 2003-06-26 14:31:45
|
Ok, now I understand You wrote: >>>The problem you are having is that you are >>>passing a DataAxisProperties Object for the y-axis ^^^^^^ That's why I didn't understand, should be x-axis, right? regards Marcin |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-26 11:50:19
|
--- Java <jav...@us...> wrote: > > Hi Nathaniel > > I would like to know if you can create multipale charts onto a > jsp page using struts. I have once read a mail where you said > to put it in the class that extends Action class. Yes, this is one way you can do it. Place multiple <img> tags in your jsp and call different Actions or call the same Action and pass some sort of key so you know what chart to get. > I would also like to join your project but aren't sure how to join. I have a > sourceforge user and password. I would suggest first subscribing to all the mail lists, and post some things you would like to see in jcharts, or changes to be made. Also, for best results, post to the jcharts user mail list in case I am not around. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-26 11:45:24
|
--- Marcin Gryszkalis <da...@to...> wrote: > On 2003-06-26 04:28, Nathaniel G. Auvil wrote: > > > The problem you are having is that you are passing a DataAxisProperties Object for the y-axis > > properties when this should be a LabelAxisProperties Object. > > > > try this for your xAxisProperties: > > > > LabelAxisProperties xAxisProperties = new LabelAxisProperties(); > > but, DataAxisProperies directly extends LabelAxisProperties... Yeah, but the logic uses the type of AxisProperties in determining how to draw the Axis. > if I change it do LabelAxisProperties, how can I > access 'round-to-nearest' property (which is defined in DataAxisProperties)? Your data is plotted against the y-axis so you would place your rounding code there. The labels are on the x-axis so rounding does not apply there. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Marcin G. <da...@to...> - 2003-06-26 05:45:07
|
On 2003-06-26 04:28, Nathaniel G. Auvil wrote: > The problem you are having is that you are passing a DataAxisProperties Object for the y-axis > properties when this should be a LabelAxisProperties Object. > > try this for your xAxisProperties: > > LabelAxisProperties xAxisProperties = new LabelAxisProperties(); but, DataAxisProperies directly extends LabelAxisProperties... Anyway, the code is: DataAxisProperties yAxisProperties = new DataAxisProperties(); yAxisProperties.setAxisTitleChartFont(ft_axis); yAxisProperties.setScaleChartFont(ft_labels); yAxisProperties.setRoundToNearest(0); AxisProperties axisProperties = new AxisProperties(xAxisProperties, yAxisProperties); if I change it do LabelAxisProperties, how can I access 'round-to-nearest' property (which is defined in DataAxisProperties)? regards Marcin |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-26 02:29:45
|
The problem you are having is that you are passing a DataAxisProperties Object for the y-axis properties when this should be a LabelAxisProperties Object. try this for your xAxisProperties: LabelAxisProperties xAxisProperties = new LabelAxisProperties(); --- Marcin Gryszkalis <da...@to...> wrote: > Hi, I use jCharts 0.7.3 > > I get this: > 23:40:56,045 ERROR [STDERR] java.lang.NullPointerException > 23:40:56,055 ERROR [STDERR] at org.jCharts.axisChart.axis.XAxis.render(XAxis.java:406) > 23:40:56,055 ERROR [STDERR] at > org.jCharts.axisChart.AxisChart.renderChart(AxisChart.java:442) > 23:40:56,055 ERROR [STDERR] at org.jCharts.Chart.render(Chart.java:169) > 23:40:56,055 ERROR [STDERR] at > org.jCharts.encoders.BinaryEncoderUtil.render(BinaryEncoderUtil.java:90) > 23:40:56,065 ERROR [STDERR] at org.jCharts.encoders.PNGEncoder.encode(PNGEncoder.java:91) > 23:40:56,085 ERROR [STDERR] at extranet.ChartServlet.performTask(ChartServlet.java:341) > > The code from my ChartServlet that generates the chart is below, > What I am doing wrong? > regards > Marcin > > =============== > String[] xAxisLabels= { "I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII" }; > out = response.getOutputStream(); > > java.util.ResourceBundle txts = java.util.ResourceBundle.getBundle("charts",new > Locale(language)); > > String year = getParameter(request,"Year"); > if (year == null) year="2002"; > > Collection v = user.getNumbersByYear(kid, new Long(year)); > Iterator it = v.iterator(); > > double[][] data = new double[1][12]; > for (int i=0; i<12; i++) > { > double d = ((Long)it.next()).doubleValue(); > data[0][i] = d; > } > String xAxisTitle = fix(txts.getString("CHART1_XAXIS")); > String yAxisTitle = fix(txts.getString("CHART1_YAXIS")); > > Object[] arg = { year }; > String title = fix(MessageFormat.format(txts.getString("CHART1_TITLE"), arg)); > > DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); > > String[] legendLabels = { fix(txts.getString("CHART1_LEGEND")) }; > > Paint[] paints={ new GradientPaint(0,0,new Color(255,213,83,150),0,350,new Color(243,116,0,200)) > }; > BarChartProperties barChartProperties = new BarChartProperties(); > > ValueLabelRenderer valueLabelRenderer = new ValueLabelRenderer( false, false, false, -1 ); > valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP ); > valueLabelRenderer.useVerticalLabels(false); > barChartProperties.addPostRenderEventListener( valueLabelRenderer ); > > AxisChartDataSet axisChartDataSet = new AxisChartDataSet(data, legendLabels, paints, > ChartType.BAR, barChartProperties); > dataSeries.addIAxisPlotDataSet(axisChartDataSet); > ChartProperties chartProperties = new ChartProperties(); > > DataAxisProperties xAxisProperties = new DataAxisProperties(); > xAxisProperties.setAxisTitleChartFont(ft_axis); > xAxisProperties.setScaleChartFont(ft_labels); > > DataAxisProperties yAxisProperties = new DataAxisProperties(); > yAxisProperties.setAxisTitleChartFont(ft_axis); > yAxisProperties.setScaleChartFont(ft_labels); > yAxisProperties.setRoundToNearest(0); > > AxisProperties axisProperties = new AxisProperties(xAxisProperties, yAxisProperties); > LegendProperties legendProperties = new LegendProperties(); > > chartProperties.setTitleFont(ft_title); > legendProperties.setFont(ft_base_); > > axisProperties.setBackgroundPaint(new GradientPaint(0,0,new Color(255,255,255),0,300,new > Color(167,213,255))); > AxisChart axisChart= new AxisChart( > dataSeries, > chartProperties, > axisProperties, > null, //legendProperties, > 548, 350 ); // wymiary wykresu > > response.setContentType("image/png"); > PNGEncoder.encode(axisChart, out); > > > > > > ------------------------------------------------------- > This SF.Net email is sponsored by: INetU > Attention Web Developers & Consultants: Become An INetU Hosting Partner. > Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! > INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Marcin G. <da...@to...> - 2003-06-25 22:01:49
|
Hi, I use jCharts 0.7.3 I get this: 23:40:56,045 ERROR [STDERR] java.lang.NullPointerException 23:40:56,055 ERROR [STDERR] at org.jCharts.axisChart.axis.XAxis.render(XAxis.java:406) 23:40:56,055 ERROR [STDERR] at org.jCharts.axisChart.AxisChart.renderChart(AxisChart.java:442) 23:40:56,055 ERROR [STDERR] at org.jCharts.Chart.render(Chart.java:169) 23:40:56,055 ERROR [STDERR] at org.jCharts.encoders.BinaryEncoderUtil.render(BinaryEncoderUtil.java:90) 23:40:56,065 ERROR [STDERR] at org.jCharts.encoders.PNGEncoder.encode(PNGEncoder.java:91) 23:40:56,085 ERROR [STDERR] at extranet.ChartServlet.performTask(ChartServlet.java:341) The code from my ChartServlet that generates the chart is below, What I am doing wrong? regards Marcin =============== String[] xAxisLabels= { "I","II","III","IV","V","VI","VII","VIII","IX","X","XI","XII" }; out = response.getOutputStream(); java.util.ResourceBundle txts = java.util.ResourceBundle.getBundle("charts",new Locale(language)); String year = getParameter(request,"Year"); if (year == null) year="2002"; Collection v = user.getNumbersByYear(kid, new Long(year)); Iterator it = v.iterator(); double[][] data = new double[1][12]; for (int i=0; i<12; i++) { double d = ((Long)it.next()).doubleValue(); data[0][i] = d; } String xAxisTitle = fix(txts.getString("CHART1_XAXIS")); String yAxisTitle = fix(txts.getString("CHART1_YAXIS")); Object[] arg = { year }; String title = fix(MessageFormat.format(txts.getString("CHART1_TITLE"), arg)); DataSeries dataSeries = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); String[] legendLabels = { fix(txts.getString("CHART1_LEGEND")) }; Paint[] paints={ new GradientPaint(0,0,new Color(255,213,83,150),0,350,new Color(243,116,0,200)) }; BarChartProperties barChartProperties = new BarChartProperties(); ValueLabelRenderer valueLabelRenderer = new ValueLabelRenderer( false, false, false, -1 ); valueLabelRenderer.setValueLabelPosition( ValueLabelPosition.ON_TOP ); valueLabelRenderer.useVerticalLabels(false); barChartProperties.addPostRenderEventListener( valueLabelRenderer ); AxisChartDataSet axisChartDataSet = new AxisChartDataSet(data, legendLabels, paints, ChartType.BAR, barChartProperties); dataSeries.addIAxisPlotDataSet(axisChartDataSet); ChartProperties chartProperties = new ChartProperties(); DataAxisProperties xAxisProperties = new DataAxisProperties(); xAxisProperties.setAxisTitleChartFont(ft_axis); xAxisProperties.setScaleChartFont(ft_labels); DataAxisProperties yAxisProperties = new DataAxisProperties(); yAxisProperties.setAxisTitleChartFont(ft_axis); yAxisProperties.setScaleChartFont(ft_labels); yAxisProperties.setRoundToNearest(0); AxisProperties axisProperties = new AxisProperties(xAxisProperties, yAxisProperties); LegendProperties legendProperties = new LegendProperties(); chartProperties.setTitleFont(ft_title); legendProperties.setFont(ft_base_); axisProperties.setBackgroundPaint(new GradientPaint(0,0,new Color(255,255,255),0,300,new Color(167,213,255))); AxisChart axisChart= new AxisChart( dataSeries, chartProperties, axisProperties, null, //legendProperties, 548, 350 ); // wymiary wykresu response.setContentType("image/png"); PNGEncoder.encode(axisChart, out); |
From: Rainer R. <rai...@at...> - 2003-06-21 19:53:35
|
Sorry for starting a new thread on this topic - I wasn't fully signed up to this mailing list. Nathaniel requested version/platform information. I'm using jCharts 0.7.2 using the JKD 1.4.1 from Apple on Mac OS X 10.2.6. I'll see whether I can reproduce this on a different platform but probably won't get to it until a week from now. If it persists I'll write some self contained code that exhibits this behavior. By the way, this will not keep me from using jCharts (I don't absolutely need a label for the y axis). I was more interested if anyone else had seen something similar and how they solved it. Overall I'm very impressed with jCharts. I have very little problems turning the example code into what I needed. Regards, Rainer |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-21 19:14:09
|
What version of jCharts are you using? What version jdk? what platform? Can you send your code, or code to make this happen? I can not reproduce this with 0.7.3 --- Rainer Romatka <rai...@at...> wrote: > As requested by Nathaniel, here is an example of a chart with the label > for the vertical axis at 45 degrees and not quite at the right location. > > ATTACHMENT part 2.1 application/applefile name=45degreeSample.jpg > ATTACHMENT part 2.2 image/jpeg x-mac-creator=38454C45; x-unix-mode=0644; x-mac-type=4A504547; name=45degreeSample.jpg > > > > The data for these charts comes from a database and the code for the > chart creation is not 100% stand-alone but fairly self contained: > > public Chart createChart() > { > int horizontalCategoryCount = mHorizontalCategoryToValueMap.size(); > int verticalCategoryCount = mVerticalCategorySet.size(); > > double[][] data = new > double[verticalCategoryCount][horizontalCategoryCount]; > Paint[] paints = new Paint[verticalCategoryCount]; > String[] horizontalLabels = new String[horizontalCategoryCount]; > String[] verticalLabels = new String[verticalCategoryCount]; > > int horizontalCategoryIndex = 0; > for ( Iterator horizontalCategoryIter = > mHorizontalCategoryToValueMap.entrySet().iterator(); > horizontalCategoryIter.hasNext(); /* */) > { > Map.Entry entry = (Map.Entry)horizontalCategoryIter.next(); > IDBObjectCategory horizontalCategory = > (IDBObjectCategory)entry.getKey(); > HorizontalCategoryData horizontalEntry = > (HorizontalCategoryData)entry.getValue(); > > int verticalCategoryIndex = 0; > for ( Iterator verticalCategoryIter = > mVerticalCategorySet.iterator(); > verticalCategoryIter.hasNext(); /* */) > { > IDBObjectCategory verticalCategory = null; > try > { > verticalCategory = (IDBObjectCategory)verticalCategoryIter.next(); > double value = horizontalEntry.value( verticalCategory); > data[verticalCategoryIndex][horizontalCategoryIndex] = value; > ++verticalCategoryIndex; > } > catch( Exception e) > { > cat.error( "Exception extracting value. Horizontal Index: " + > horizontalCategoryIndex + > " Vertical index: " + verticalCategoryIndex + > " (Category: " + verticalCategory.toString(), e); > throw new IllegalStateException( "Exception extracting value"); > } > } > > horizontalLabels[horizontalCategoryIndex] = horizontalCategory.name( > mLocale); > > ++horizontalCategoryIndex; > } > > int verticalCategoryIndex = 0; > for ( Iterator verticalCategoryIter = mVerticalCategorySet.iterator(); > verticalCategoryIter.hasNext(); /* */) > { > IDBObjectCategory verticalCategory = > (IDBObjectCategory)verticalCategoryIter.next(); > paints[verticalCategoryIndex] = ChartServlet.chartColor( > verticalCategoryIndex); > verticalLabels[verticalCategoryIndex] = verticalCategory.name( > mLocale); > ++verticalCategoryIndex; > } > > String horizAxisTitle = mHorizAxisCategoryGrouper.displayName( > mLocale); > String vertAxisTitle = mObjDef.getPropertyDefinition( > mValuePropName).getTitle( mLocale); > > DataSeries dataSeries = new DataSeries( horizontalLabels, > horizAxisTitle, vertAxisTitle, mTitle); > StackedBarChartProperties stackedBarChartProperties= new > StackedBarChartProperties(); > AxisChartDataSet axisChartDataSet = null; > try > { > axisChartDataSet = > new AxisChartDataSet( data, verticalLabels, paints, mChartType, > stackedBarChartProperties ); > } > catch( ChartDataException e) > { > cat.error( "Exception creating data set for pie chart", e); > } > dataSeries.addIAxisPlotDataSet( axisChartDataSet); > > // ---to make this plot horizontally, pass true to the > AxisProperties Constructor > // AxisProperties axisProperties= new AxisProperties( true ); > AxisProperties axisProperties= new AxisProperties(); > > return new AxisChart( dataSeries, chartProperties(), axisProperties, > legendProperties(), mWidth, mHeight); > } > > Any help would be much appreciated. > > Thanks, > > Rainer ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-21 14:42:54
|
Fixes in 0.7.3: -------------------- * fixed bug in Scatter Plots where x-axis labels were not being drawn correctly. * fixed bug where the y-axis grid lines were not using the specified ChartStroke ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-20 02:01:06
|
Ok, I found the problem; it is in ScatterPlotAxisChart. I checked a fix into CVS under both the 0.7 and the krysalis-jcharts (the next major release) trees. There most likely will be a 0.7.3 release this weekend to include this, plus another bug fix. --- Hussein Vastani <hus...@ho...> wrote: > Hi, > First of all let me congratulate the jCharts team for creating a very useful tool indeed. > > I think there's a bug in the ScatterPlot example in the .war file of the download. I deployed > the war under Tomcat 4.1.18 and everything else works except for the scatterplot example. The > x-axis data labels (-5,-2,1,...) are off-setted to the left starting from the border of the > image. The same graph shown under the samples section of the website appears correctly. Is that > a bug in the src code or just the .war example. > > Thanks. > > Hussein. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Hussein V. <hus...@ho...> - 2003-06-19 23:28:56
|
Hi, First of all let me congratulate the jCharts team for creating a very = useful tool indeed. I think there's a bug in the ScatterPlot example in the .war file of the = download. I deployed the war under Tomcat 4.1.18 and everything else = works except for the scatterplot example. The x-axis data labels = (-5,-2,1,...) are off-setted to the left starting from the border of the = image. The same graph shown under the samples section of the website = appears correctly. Is that a bug in the src code or just the .war = example. Thanks. Hussein. |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-19 02:42:53
|
In porting the User Guide over to Forrest, I have a couple things I would like to get some feedback on.... 1) Should each item in the User Guide have *ALL* the code used to generate it there, or just the relevant lines. The source is still there as always when you download the User Guide. 2) IMO, the online user guide should reflect what is currently in CVS, not the last stable release. If someone wants the last stable release User Guide, they should download the latest stable version of the user Guide. I think it is safe to say we will not be stripping out functionality, so it is not as if we will advertise something that is not possible. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-18 21:48:51
|
a couple things: 1) you should not call JFrame.pack() 2) you need to call getGraphics() on the JPanel only after it is visible on the screen as Java will not create a graphics item for non visible components that have never been visible. 3) the size of the JFrame includes the borders of the JFrame itself so you need to size it accordingly. try this: public class a extends JPanel { LegendProperties lp = null; ChartProperties cp = null; BarChartProperties ctp = null; AxisChart c = null; AxisProperties ap = null; public a() throws Exception { ChartProperties cp = new ChartProperties(); ctp = new BarChartProperties(); String[] xAxisLabels = {"1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002","2003", "2004"}; String xAxisTitle = "Years"; String yAxisTitle = "Problems"; String title = "Micro$oft At Work"; DataSeries ds = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); double[][] data = new double[][]{{1500, 6880, 4510, 2600, -1200, -1580, 7000, 4555, 4000,6120}}; String[] legendLabels = {"Bugs"}; Paint[] paints = new Paint[]{Color.yellow}; ds.addIAxisPlotDataSet(new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, ctp)); lp = new LegendProperties(); ap = new AxisProperties(false); c = new AxisChart(ds, cp, ap, lp, 400, 400); //c.setGraphics2D((Graphics2D)getGraphics()); } public static void main(String args[]) throws Exception { JFrame f = new JFrame("a"); f.setSize( 500, 500 ); a a = new a(); a.setSize( 400,400); f.getContentPane().add(a); // f.pack(); f.setVisible(true); a.c.setGraphics2D((Graphics2D)a.getGraphics()); a.c.render(); } } --- Mike Eggleston <mi...@mi...> wrote: > Hi Nathaniel! > > On Wed, 18 Jun 2003, Nathaniel G. Auvil wrote: > > > > > hey Mike. > > > > http://jcharts.sourceforge.net/userGuide/exportingImages.html > > > > > > take a look at the user guide for an example of a Swing app. The package namespace has > changed > > from org.jCharts to org.krysalis.jcharts for the 1.0.0 release, but the code is the same. > > > > At a quick glance, it looks like you only need to set the graphics2D from your JPanel (note > the > > 'J' in front of Panel, which is the Swing classes rather than the AWT Panel Object) and simply > > call Render. > > With the changes to JPanel and JFrame it compiles fine, but gets an error > in the org.jCharts.Chart.render method. > > Mike > > public class a extends JPanel { > LegendProperties lp = null; > ChartProperties cp = null; > BarChartProperties ctp = null; > AxisChart c = null; > AxisProperties ap = null; > > public a() throws Exception { > ChartProperties cp = new ChartProperties(); > ctp = new BarChartProperties(); > > String[] xAxisLabels = {"1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", > "2003", "2004"}; > String xAxisTitle = "Years"; > String yAxisTitle = "Problems"; > String title = "Micro$oft At Work"; > DataSeries ds = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); > > double[][] data = new double[][]{{1500, 6880, 4510, 2600, -1200, -1580, 7000, 4555, > 4000, 6120}}; > String[] legendLabels = {"Bugs"}; > Paint[] paints = new Paint[]{Color.yellow}; > ds.addIAxisPlotDataSet(new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, > ctp)); > > lp = new LegendProperties(); > ap = new AxisProperties(false); > > c = new AxisChart(ds, cp, ap, lp, 400, 400); > c.setGraphics2D((Graphics2D)getGraphics()); > } > > public static void main(String args[]) throws Exception { > JFrame f = new JFrame("a"); > > a a = new a(); > > f.getContentPane().add(a); > f.pack(); > f.setVisible(true); > a.c.render(); > } > } > > :!javac a.java && java a > Exception in thread "main" java.lang.NullPointerException > at org.jCharts.Chart.render(Unknown Source) > at a.main(a.java:46) > > ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-18 17:05:36
|
--- Pal Perinbam <pal...@ya...> wrote: > I think breaking after a user specified width will be fine. > ok. > Is this feature available now? if yes, how to use this feature? > no, this is not in the codebase. It will be a feature request for the next release. ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Mike E. <mi...@mi...> - 2003-06-18 14:46:16
|
import org.jCharts.axisChart.AxisChart; import org.jCharts.chartData.*; import org.jCharts.properties.*; import org.jCharts.types.*; import java.awt.*; public class a extends Panel { LegendProperties lp = null; ChartProperties cp = null; BarChartProperties ctp = null; AxisChart c = null; AxisProperties ap = null; public a() throws Exception { ChartProperties cp = new ChartProperties(); ctp = new BarChartProperties(); String[] xAxisLabels = {"1995", "1996", "1997", "1998", "1999", "2000", "2001", "2002", "2003", "2004"}; String xAxisTitle = "Years"; String yAxisTitle = "Problems"; String title = "Micro$oft At Work"; DataSeries ds = new DataSeries( xAxisLabels, xAxisTitle, yAxisTitle, title ); double[][] data = new double[][]{{1500, 6880, 4510, 2600, -1200, -1580, 7000, 4555, 4000, 6120}}; String[] legendLabels = {"Bugs"}; Paint[] paints = new Paint[]{Color.yellow}; ds.addIAxisPlotDataSet(new AxisChartDataSet( data, legendLabels, paints, ChartType.BAR, ctp)); lp = new LegendProperties(); ap = new AxisProperties(false); c = new AxisChart(ds, cp, ap, lp, 400, 400); } public static void main(String args[]) throws Exception { Frame f = new Frame("a"); Panel p = new Panel(); a a = new a(); p.add(a); f.add(p); f.pack(); f.setVisible(true); a.c.renderChart(); } } |
From: Pal P. <pal...@ya...> - 2003-06-18 14:19:27
|
I think breaking after a user specified width will be fine. Is this feature available now? if yes, how to use this feature? "Nathaniel G. Auvil" <nat...@ya...> wrote: There was a typo....This is *NOT* in the current codebase. --- "Nathaniel G. Auvil" wrote: > > This is in the current codebase. > > What would you like to see? Or should I say, how should we determine when to break? > > After each word? > After a user specified break character? > After a user specified width? > > > > > --- Pal Perinbam wrote: > > Hi, > > I am generating pie charts with LEGEND_LABELS option. The pie chart shrinks when one or more > > labels become large. is there an option to wrap the labels of the pie chart so that the chart > do > > not shrink when the labels become large. > > I have attached the image of the chart.Please advice on this. > > > > Regards, > > Pal > > > > > > > > > > --------------------------------- > > Do you Yahoo!? > > SBC Yahoo! DSL - Now only $29.95 per month! > > > ATTACHMENT part 2 image/pjpeg name=testpie.jpg > > > > ===== > http://nathaniel-auvil.blog-city.com/ > > __________________________________ > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! > http://sbc.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: eBay > Great deals on office technology -- on eBay now! Click here: > http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 > _______________________________________________ > jCharts-users mailing list > jCh...@li... > https://lists.sourceforge.net/lists/listinfo/jcharts-users ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 _______________________________________________ jCharts-users mailing list jCh...@li... https://lists.sourceforge.net/lists/listinfo/jcharts-users --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! |
From: Ganapathi N. <pa...@ya...> - 2003-06-18 03:02:46
|
Played around a little with JSP and here is how, <img src="LineChartServlet"> <table> data </table> Gana __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Ganapathi N. <pa...@ya...> - 2003-06-18 02:34:25
|
Greetings, I've been using jCharts for a while but new to JSP. I use Servlets to generate the required chart, and the resulting jsp contains the chart. I would like to know if it is possible to generate a Chart and a HTML table in the same JSP page. The JSP page already contains a table, below which a chart is added. Any help on this is really appreciated. Thanks Gana Nanjappa __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-17 12:32:41
|
Scatter Plots were not in the labelling first pass. They are in the plan for 1.0.0, which will be the next release. --- Pal Perinbam <pal...@ya...> wrote: > Hi, > > Is there a provision to add labels for each point in scatter plot and display the labels > adjacent to the points. > > Regards, > Pal > > > --------------------------------- > Do you Yahoo!? > SBC Yahoo! DSL - Now only $29.95 per month! ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Pal P. <pal...@ya...> - 2003-06-17 08:51:23
|
Hi, Is there a provision to add labels for each point in scatter plot and display the labels adjacent to the points. Regards, Pal --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-16 19:40:41
|
> > with a scrollbar at the bottom. Moving the scrollbar, its listener > would know how to adjust the six charts in sync with each other. > So no OHLC stock bars, but each open, high, low, close could be > plotted as individual lines? > did you look at the sample Stock Chart? > How would the real-time updates work? I am not sure what you are after. You add values to your data set and render the chart again. There are Interfaces in addition to an Implementation of the data structures, so you could implement your own data sets if you do not like the ones provided. Due to the generic nature of this library, very few assumptions can be made about optimizing the rendering of real time data. Can you think of any? Remember the sizing and placement of all the things on the chart are driven by the data sets, such as vertical axis labels, number of scale items, etc... So, unless you can make assumptions about your data set, such as, all values fall within 0 - 100 and I always want 5 items in the scale starting at zero with an increment of 20, and i am using horizontal x-axis labels, or my labels never change, etc... then you could say, I will only redraw the plot area on each data item change as that is the only thing that will change in teh rendered image. The source is freely available and you can customize it to render however you like, such as caching sizing values, and setting clipping regions based on assumptions to your data. ---nathaniel ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |
From: Mike E. <mi...@mi...> - 2003-06-16 19:02:48
|
On Mon, 16 Jun 2003, Nathaniel G. Auvil wrote: > > > - can jcharts work as I have described the app window > > - six charts in the primary app window > > sure. You can have as many charts as you would like. > > > - can jcharts plot stock bars > > - I know it can do lines > currently, there are only lines for high,low,open,close. bars representing the open and close > range are not supported. I will add this as a feature request for the next release. > > > > - can jcharts handle the real-time update > > - if I need to manage the shifting of data to the left (older) that's fine > sure. > > > > - can jcharts work with an application (not applet) > > - I deliver all jar files using JNLP > yes. There should be no problem running with Java Web Start. > > > > - one odd thing I want to do is to eventially sync all charts to a single scroll > > bar at the bottom of the window > > - so that by moving the one scrollbar all charts are properly scrolled > > this is more of how you layout your charts in your application. I believe what you want are a > bunch of JPanel Objects in a single JScrollPane? I'm thinking of the main window like this +------------------------------+ | | | | | | | | | | | | | +-------+ | | | | | | | +-------+ | | | | | +-------+ | | | | | | | | | | | | | +------------------------------+ with a scrollbar at the bottom. Moving the scrollbar, its listener would know how to adjust the six charts in sync with each other. So no OHLC stock bars, but each open, high, low, close could be plotted as individual lines? How would the real-time updates work? Mike |
From: Nathaniel G. A. <nat...@ya...> - 2003-06-16 18:55:26
|
> - can jcharts work as I have described the app window > - six charts in the primary app window sure. You can have as many charts as you would like. > - can jcharts plot stock bars > - I know it can do lines currently, there are only lines for high,low,open,close. bars representing the open and close range are not supported. I will add this as a feature request for the next release. > - can jcharts handle the real-time update > - if I need to manage the shifting of data to the left (older) that's fine sure. > - can jcharts work with an application (not applet) > - I deliver all jar files using JNLP yes. There should be no problem running with Java Web Start. > - one odd thing I want to do is to eventially sync all charts to a single scroll > bar at the bottom of the window > - so that by moving the one scrollbar all charts are properly scrolled this is more of how you layout your charts in your application. I believe what you want are a bunch of JPanel Objects in a single JScrollPane? ===== http://nathaniel-auvil.blog-city.com/ __________________________________ Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month! http://sbc.yahoo.com |