gpt4 book ai didi

javascript - 绘图 : stackedgraph is used per-series?

转载 作者:行者123 更新时间:2023-11-28 06:09:18 26 4
gpt4 key购买 nike

我想在一张图中显示一个堆叠图和一个折线图,但感觉堆叠图在每个系列中不可用。我该如何使用它?

g = new Dygraph(document.getElementById("graph"),
"X,Y1,Y2,Y3\n" +
"0,25,0,30\n" +
"1,20,10,27\n" +
"2,17,17,30\n" +
"3,16,23,28\n" +
"4,14,27,30\n" +
"5,13,30,29\n" +
"6,12,32,30\n" +
"7,11,33,30\n",
{
"Y1": {
stackedGraph: true, fillGraph: true
},
"Y2": {
stackedGraph: true, fillGraph: true
},
"Y3": {
stackedGraph: false, fillGraph: false, strokeWidth: 2
},
title: 'Test'
});

最佳答案

stackedGraph 选项无法针对每个系列或每个轴进行设置。

有一个 open issue使这个选项和其他选项成为每个轴的选项,但目前还没有计划支持这一点。

关于javascript - 绘图 : stackedgraph is used per-series?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36564768/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com