永洪社区
标题: 比对分析怎么实现动态高亮 [打印本页]
作者: 三森 时间: 2024-5-14 09:33
标题: 比对分析怎么实现动态高亮
本帖最后由 三森 于 2024-5-14 09:33 编辑
当使用柱状图或堆积柱状图设置了一个动态计算出来的平均值作为一条目标线时,设置柱状图的低于平均值的数据高亮,此时设置的高亮条件中应该如何通过动态计算的平均值参数来进行变化。
10.1.1 版本高亮处没有相应的avg参数选择项;
10.2.0 版本avg参数使用报错
作者: yhdata_lyaa 时间: 2024-5-14 09:33
您好,确实有问题,感谢您的反馈,后续版本将进行修复,请持续关注
作者: yhdata_lyaa 时间: 2024-5-14 10:13
报什么错呢,目标线和高亮现在是怎么设置的
作者: 三森 时间: 2024-5-14 14:42
目标线是按视频教程设置的平均值,高亮设置高亮条件时报错代码为110099999,提示:”_AVG_”参数不合法,具体后台报错是错误代码:110099999
报告: 'demo-020240514143626-1979' 组件: '图表1' 执行用户: 'admin'
java.lang.UnsupportedOperationException: ”_AVG_”参数不合法
at g5.util.Util.predefinedDate(Util.java:6110)
at g5.util.Util.predefinedDate(Util.java:5801)
at g5.sv.deploy.impl.DesktopRemoteMgr.predefinedVal(DesktopRemoteMgr.java:307)
at g5.util.Util.predefinedVal(Util.java:5421)
at g5.util.Util.predefinedVal(Util.java:5385)
at g5.qry.util.QUtil.predefinedVal(QUtil.java:1269)
at g5.qry.QContextImpl.get0(QContextImpl.java:72)
at g5.qry.QPropsParamContext.get(QPropsParamContext.java:23)
at g5.meta.ExpNode.isUndefinedParam(ExpNode.java:235)
at g5.meta.ExpNode.isUndefined(ExpNode.java:225)
at g5.meta.BinaryNode.isUndefined(BinaryNode.java:174)
at g5.meta.BinaryNode.createRuntime(BinaryNode.java:181)
at g5.grid.filter.RHighLight.createRuntime(RHighLight.java:106)
at g5.db.chart.build.BMarkBuilder.applyHL0(BMarkBuilder.java:852)
at g5.db.chart.build.BMarkBuilder.applyHL(BMarkBuilder.java:837)
at g5.db.chart.build.BMarkBuilder.processAestheticAndGrp(BMarkBuilder.java:485)
at g5.db.chart.build.BMarkBuilder.applyMarkOpt(BMarkBuilder.java:201)
at g5.db.chart.build.BMarkBuilder.build(BMarkBuilder.java:81)
at g5.db.chart.build.BChartBuilder.addMarks(BChartBuilder.java:703)
at g5.db.chart.build.BChartBuilder.build(BChartBuilder.java:573)
at g5.db.impl.ChartPresenter.createVChart0(ChartPresenter.java:1218)
at g5.db.impl.ChartPresenter.init(ChartPresenter.java:526)
at g5.db.impl.ChartPresenter.init(ChartPresenter.java:463)
at g5.db.impl.ChartPresenter.getChartRegion(ChartPresenter.java:192)
at g5.db.elem.ChartElem.getRTModel(ChartElem.java:411)
at g5.db.elem.DBElem.getRuntimeModel(DBElem.java:862)
at g5.db.RTModelBuilder.build(RTModelBuilder.java:147)
at g5.sv.db.DBReq.createUpIns(DBReq.java:931)
at g5.sv.db.req.UpdateElemReq.updateElement(UpdateElemReq.java:371)
at g5.sv.db.req.UpdateElemReq.process1(UpdateElemReq.java:179)
at g5.sv.db.req.UpdateElemReq.process0(UpdateElemReq.java:96)
at g5.sv.Req.process(Req.java:57)
at g5.sv.db.DBServiceImpl.process(DBServiceImpl.java:1380)
at g5.sv.db.DBProc.procReq(DBProc.java:1770)
at g5.sv.db.DBProc.service(DBProc.java:140)
at g5.sv.ServletHelper.service(ServletHelper.java:133)
at g5.sv.PortalServlet.service(PortalServlet.java:1551)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1391)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:760)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
at org.eclipse.jetty.websocket.server.WebSocketUpgradeFilter.doFilter(WebSocketUpgradeFilter.java:226)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:536)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1589)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1296)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1559)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1211)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:146)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
at org.eclipse.jetty.server.Server.handle(Server.java:500)
at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:386)
at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:560)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:378)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:268)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:367)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782)
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:914)
at java.base/java.lang.Thread.run(Thread.java:834)
?{_AVG_}平均值是在下拉选项里面是可选的
作者: yhdata_lyaa 时间: 2024-5-14 15:07
方便截图看看柱图绑定,目标线和高亮设置吗
作者: 三森 时间: 2024-5-14 15:40
如图
作者: yhdata_ 时间: 2024-5-14 15:55
用脚本,写一个参数获取这个平均值,然后高亮的时候与这个参数去做对比就可以
作者: 三森 时间: 2024-5-14 15:58
这个平均值有函数提供吗?我之前看过脚本那块,没找到相对应的函数来获取这个平均值
作者: yhdata_lyaa 时间: 2024-5-14 15:59
当前desktop是什么版本呀,查看个性化设置最底下看看
作者: 三森 时间: 2024-5-14 16:01
最新版的
作者: yhdata_lyaa 时间: 2024-5-14 16:46
好的,我们测试一下
作者: yhdata_ 时间: 2024-5-14 17:06
是要达到这个效果吗?
(, 下载次数: 1677)