From: Chris M. <ki...@us...> - 2004-09-21 03:54:05
|
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); |