gpt4 book ai didi

charts - 如何删除 dojo 折线图中虚线的灰色背景?

转载 作者:行者123 更新时间:2023-12-01 11:49:36 26 4
gpt4 key购买 nike

我在 Dojo 中使用虚线和点线创建了一个图表。一切正常,除了虚线的背景是灰色的。

如何去除线条的灰色背景?

var xChart = new dojox.charting.Chart2D("test-chart");
xChart.setTheme(dojox.charting.themes.Julie);
xChart.addAxis("x");
xChart.addPlot("default", {type: "Lines"});

xChart.addSeries("xscsd", [2,3,5,5,23,1,6],
{stroke: {color: "red", width: 1.5, style:"Dot"}});

xChart.render();

最佳答案

默认主题定义了一个灰色轮廓。添加系列时用 null 覆盖轮廓。

xChart.addSeries("xscsd", [2,3,5,5,23,1,6],
{stroke: {color: "red", width: 1.5, style:"Dot"},
outline: null });

http://jsfiddle.net/cswing/qDL79/

关于charts - 如何删除 dojo 折线图中虚线的灰色背景?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12671780/

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