krysalis-jcharts/src/java/org/krysalis/jcharts/test DualAxisComboTestDriver.java,1.1,1.2
Chris McKay <[email protected]> Tue, 21 Sep 2004 03:53:56 +0000
| Newsgroups | gmane.comp.krysalis.jcharts.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22747/src/java/org/krysalis/jcharts/test
Modified Files:
DualAxisComboTestDriver.java
Log Message:
Final fixes for truely independant dual Y axis
Index: DualAxisComboTestDriver.java
===================================================================
RCS file: /cvsroot/jcharts/krysalis-jcharts/src/java/org/krysalis/jcharts/test/DualAxisComboTestDriver.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** DualAxisComboTestDriver.java 1 Jul 2004 02:06:40 -0000 1.1
--- DualAxisComboTestDriver.java 21 Sep 2004 03:53:52 -0000 1.2
***************
*** 115,123 ****
Paint[] paints = {new Color(0x00, 0x56,0x99), new Color(0xD1,0xD6,0x18), new Color(0xB3,0x05,0x05) };
String[] legendLabels = {"Successful", "Warnings", "Failures"};
! axisChartDataSet = new AxisChartDataSet(barData, legendLabels, paints, ChartType.BAR_STACKED, stackedBarChartProperties);
! // Stroke[] lineStrokes1 = {LineChartProperties.DASHED_LINE_STROKE, LineChartProperties.DASH_DOT_LINE_STROKE, LineChartProperties.DEFAULT_LINE_STROKE};
! // Shape[] lineShapes1 = {PointChartProperties.SHAPE_TRIANGLE, PointChartProperties.SHAPE_CIRCLE, PointChartProperties.SHAPE_DIAMOND};
! // LineChartProperties lineChartProperties1 = new LineChartProperties(lineStrokes1, lineShapes1);
! // axisChartDataSet = new AxisChartDataSet(barData, legendLabels, paints, ChartType.LINE, lineChartProperties1);
dataSeries.addIAxisPlotDataSet(axisChartDataSet);
--- 115,124 ----
Paint[] paints = {new Color(0x00, 0x56,0x99), new Color(0xD1,0xD6,0x18), new Color(0xB3,0x05,0x05) };
String[] legendLabels = {"Successful", "Warnings", "Failures"};
! // axisChartDataSet = new AxisChartDataSet(barData, legendLabels, paints, ChartType.BAR_STACKED, stackedBarChartProperties);
! // this data really for a bar chart, but I am testing one set of lines plotted against the left Y axis versus another set of lines plotted against the right Y axis
! Stroke[] lineStrokes1 = {LineChartProperties.DASHED_LINE_STROKE, LineChartProperties.DASH_DOT_LINE_STROKE, LineChartProperties.DEFAULT_LINE_STROKE};
! Shape[] lineShapes1 = {PointChartProperties.SHAPE_TRIANGLE, PointChartProperties.SHAPE_CIRCLE, PointChartProperties.SHAPE_DIAMOND};
! LineChartProperties lineChartProperties1 = new LineChartProperties(lineStrokes1, lineShapes1);
! axisChartDataSet = new AxisChartDataSet(barData, legendLabels, paints, ChartType.LINE, lineChartProperties1);
dataSeries.addIAxisPlotDataSet(axisChartDataSet);
***************
*** 135,139 ****
LineChartProperties lineChartProperties = new LineChartProperties(lineStrokes, lineShapes);
! axisChartDataSet = new AxisChartDataSet(lineData, true, lineLegendLabels, linePaints, ChartType.LINE, lineChartProperties);
dataSeries.addIAxisPlotDataSet(axisChartDataSet);
--- 136,141 ----
LineChartProperties lineChartProperties = new LineChartProperties(lineStrokes, lineShapes);
! axisChartDataSet = new AxisChartDataSet(lineData, lineLegendLabels, linePaints, ChartType.LINE_RHS, lineChartProperties);
! // Note chart type of LINE_RHS = plot against right hand side
dataSeries.addIAxisPlotDataSet(axisChartDataSet);
-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php