[测评系统]--测评系统核心代码库
wzp
2024-07-31 7df8a8bea313a270014a1de4ae0de4c69172c5bf
src/main/java/com/ots/project/tool/report/LAQ/chart/LAQAllChart.java
@@ -176,7 +176,7 @@
                        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;
                        }
@@ -373,6 +373,54 @@
                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(
@@ -382,7 +430,6 @@
                            new RowData("Y 值", perfomance)
                    ))
            );
            if(type==1)
            {
@@ -410,6 +457,7 @@
                    dataIndex++;
                }
            }
        }
        return  seriesDataMap;
@@ -457,7 +505,7 @@
            {
                if(olas>67)
                {
                    seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"("+olasStr+"-"+perfomanceStr+")");
                    seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"\n("+olasStr+"-"+perfomanceStr+")");
                    dataIndex++;
                }
            }
@@ -466,7 +514,7 @@
            {
                if(olas<=67 && olas>33)
                {
                    seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"("+olasStr+"-"+perfomanceStr+")");
                    seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"\n("+olasStr+"-"+perfomanceStr+")");
                    dataIndex++;
                }
            }
@@ -475,7 +523,7 @@
            {
                if(olas<=33)
                {
                    seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"("+olasStr+"-"+perfomanceStr+")");
                    seriesDataMapLables.put(dataIndex,laqTemplate.getName()+"\n("+olasStr+"-"+perfomanceStr+")");
                    dataIndex++;
                }