【发布时间】:2018-04-26 18:27:31
【问题描述】:
我有一张图表,其中 x 轴上有日期,y 轴上有数字 -15 到 15。
我需要在 -3 处有一条水平线,并用黄色填充 0 到 -3 的空间。我在 amcharts 上找到的唯一与此相关的文档是 this one,这对我来说信息太少了。
代码
var char = {
type: 'xy',
theme: 'light',
titles: [{
text: 'Blind PUL-QC Performance'
}, {
text: 'Difference: \'Blind PUL-QC(%)\' - \'Original PUL-QC(%)\'',
bold: false
}],
dataProvider: als.webview.qc.reports.pullqccheck.chartDataOrig,
valueAxes: axes2,
graphs: graphs2,
dataDateFormat: "DD-MM-YYYY",
guides: [ {
fillAlpha: 0.10,
value: 0,
toValue: -3,
lineColor: "#CC0000",
lineAlpha: 2,
fillAlpha: 0.2,
fillColor: "#CC0000",
inside: true
} ]
};
图表右侧出现一条模糊的垂直线,这不是我需要的。
【问题讨论】:
标签: javascript graph line amcharts