| | |
| | | for (CTScatterSer ser : scatterChart.getSerList()) { |
| | | //更新散点图缓存 |
| | | updateScatterChart(seriesDatas, ser.getXVal(), ser.getYVal()); |
| | | ser.getTx().getStrRef().getStrCache().getPtArray(0).setV(lables); |
| | | ser.getTx().getStrRef().getStrCache().getPtArray(0).setV(lables);//设置标签 |
| | | ++i; |
| | | } |
| | | |
| | |
| | | perfomance = 0.0; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | //如果y轴小于1,要设置成3,往上移动一下 |
| | | if(perfomance<=1.2) |
| | | { |
| | | perfomance=perfomance+1.2; |
| | | } |
| | | //如果y轴大于97,设置成97,往下移动一点,好看 |
| | | if(perfomance>=99) |
| | | { |
| | | perfomance=99.0; |
| | | } |
| | | |
| | | if(type==1) |
| | | { |
| | | //x轴要往右边移动 |
| | | if(olas>67.0&olas<=70.0) |
| | | { |
| | | olas=olas+1.5; |
| | | } |
| | | |
| | | if(olas>=99.0) |
| | | { |
| | | olas = olas-2.0; |
| | | } |
| | | } |
| | | |
| | | if(type==2) |
| | | { |
| | | //x轴要往右边移动 |
| | | if(olas>=33.0&olas<=35.0) |
| | | { |
| | | olas= olas+1; |
| | | } |
| | | } |
| | | |
| | | if(type==3) |
| | | { |
| | | //x轴要往右边移动 |
| | | if(olas>0.0 && olas<=3.0) |
| | | { |
| | | olas= olas + 1; |
| | | } |
| | | |
| | | } |
| | | |
| | | List<SeriesData> seriesDatas = new ArrayList<>(); |
| | | seriesDatas = Arrays.asList( |
| | | new SeriesData("X 值", Arrays.asList( |
| | |
| | | new RowData("Y 值", perfomance) |
| | | )) |
| | | ); |
| | | |
| | | |
| | | if(type==1) |
| | | { |
| | |
| | | dataIndex++; |
| | | } |
| | | } |
| | | |
| | | } |
| | | |
| | | return seriesDataMap; |
| | |
| | | { |
| | | if(olas>67) |
| | | { |
| | | seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"("+olasStr+"-"+perfomanceStr+")"); |
| | | seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"\n("+olasStr+"-"+perfomanceStr+")"); |
| | | dataIndex++; |
| | | } |
| | | } |
| | |
| | | { |
| | | if(olas<=67 && olas>33) |
| | | { |
| | | seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"("+olasStr+"-"+perfomanceStr+")"); |
| | | seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"\n("+olasStr+"-"+perfomanceStr+")"); |
| | | dataIndex++; |
| | | } |
| | | } |
| | |
| | | { |
| | | if(olas<=33) |
| | | { |
| | | seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"("+olasStr+"-"+perfomanceStr+")"); |
| | | seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"\n("+olasStr+"-"+perfomanceStr+")"); |
| | | |
| | | dataIndex++; |
| | | } |