User (Legacy) Posted November 30, 2004 Report Share Posted November 30, 2004 I have been unable to get data to display on combination charts! The following code, which is *directly form the docs* formats the chart and axes correctly, but does not display any data. If I set the gallery type of the chart as a whole to bar and don't set the gallery type on the series I can see both data series as bars, but if I set the gallery type on the series individually chartfx does not work corectly. I am using version 6.0.1609.26419 of chartfx. Please help! Edward Code from docs which doesn' t work: chart1 = new Chart(); chart1.openData(COD.VALUES,2,5); chart1.setValue(0,0,0.5); chart1.setValue(0,1,0.75); chart1.setValue(0,2,0.91); chart1.setValue(0,3,0.98); chart1.setValue(0,4,0.72); chart1.setValue(1,0,232815); chart1.setValue(1,1,678192); chart1.setValue(1,2,655234); chart1.setValue(1,3,891230); chart1.setValue(1,4,533988); chart1.closeData(COD.VALUES); SeriesAttributes series = chart1.getSeries(0); series.setGallery(Gallery.LINES); series.setYAxis(YAxis.SECONDARY); series = chart1.getSeries(1); series.setGallery(Gallery.BAR); series.setCylSides((short) 32); Axis axis = chart1.getAxis(YAxis.SECONDARY); axis.setMin((float) 0.5); axis.setMax(1); axis.setStep(0.05); axis.setVisible(true); chart1.getAxisY().setGridlines(true); chart1.getAxisY().setScaleUnit(10000); chart1.getAxisY().getDataFormat().setDecimals(0); Link to comment Share on other sites More sharing options...
This topic is now archived and is closed to further replies.