20 评论

云欢水清

如果一个柱形图里有2个系列值,对某一个值排序怎么办

0 2022-12-30 11:20

Fay

可以让图表数据根据不同分类排序,如果是分别排序可以参考:https://help.fanruan.com/finereport/doc-view-3946.html

0 2023-02-03 16:46

Bell贝尔

解说连代码都能写错,第一张图表双引号是chart0,但第二张是chart1,第三张应该是chart2,下面的是第二张条形图表的正确实例
var vanchart=FR.Chart.WebUtils.getChart("chart1").getChartWithIndex(0);
vanchart.setSeriesVisible();

1 2021-12-07 16:24

Alicehyy

如果您是分别插入了 chart0、chart1、chart2,那么按您的写法才是对的哦

1 2021-12-08 11:12

Alicehyy

您好,并没有写错哈,文档中只有一个图表组件 chart0 ,而三个不同的图表都是在这一个组件中添加的,请查看 2.2节截图。三个图表区分是通过 getChartWithIndex() 中的 0,1,2 区分的。 建议您再仔细看看文档呢

1 2021-12-08 11:11

百无禁忌

全屏就失效了啊~
我给想了一个招,初始化事件监听:
window.addEventListener("resize", function() {
if (Math.abs(window.screen.height - window.document.documentElement.clientHeight) < 5) {
console.log("全屏状态");
setTimeout(function() {
var vanchart = FR.Chart.WebUtils.getChart("chartX").getChartWithIndex(0);
vanchart.setSeriesVisible([0, 1]);
}, 800);
} else {
console.log("no全屏状态");
setTimeout(function() {
var vanchart = FR.Chart.WebUtils.getChart("chartX").getChartWithIndex(0);
vanchart.setSeriesVisible([0, 1]);
}, 800);
}
});

setTimeout(function() {
var vanchart = FR.Chart.WebUtils.getChart("chartX").getChartWithIndex(0);
vanchart.setSeriesVisible([0, 1]);
}, 800);

2 2021-12-01 00:59

就玩一小会

非常好用

0 2023-11-20 13:33

用户xX44F3334711

您好,请问决策报表初始化事件怎么实现

0 2022-08-30 10:35

Fay

可以使用延时函数 setTimeout()试试呢

0 2023-02-06 16:20

deanliu

例2中怎么实现动态参数?

0 2021-02-14 00:11

Alicehyy

您好,您可以到社区问答https://bbs.fanruan.com/wenda发帖咨询哦

0 2021-12-30 11:02

yaoxin

同问, 如何支持移动端?

0 2020-09-27 11:34

Alicehyy

您好,示例一是可以的,示例二是因为用的加载结束事件不支持,如果是用按钮点击事件是可以的

0 2021-12-30 11:01