我正在运行使用小工具服务器上的可视化框架的 lineChart 小工具示例。它运行良好,每秒显示数据。我想更改线条的颜色,但在小工具代码中找不到任何可以设置线条颜色的方法。在下面的代码中,您可以设置一些属性。
window.onload = function () {
var lineChart = new wso2vis.s.chart.protovis.LineChart("chart","MNT-Lab : LabVIEW Simulation","");
lineChart.dataField(["Response", "Terminal"])
.dataValue(["Value"])
.dataLabel(["Name"])
.width(380)
.height(300)
.band(50)
.legend(true)
.marks(true)
.dirFromLeft(true)
.xSuffix("s");
但是我对如何以及在何处设置线条的默认颜色感到有些困惑。我查看了 wso2vis.js 文件,但看不到任何更改颜色的方法。