我希望您能帮助我解决我遇到的几个问题。
当我设置图片时,我遇到两个问题。
首先:我想知道如何抑制小时和分钟叶并仅保留工具提示日期。
第二:我想知道为什么下面的图表,它取0值,当它不需要留下任何东西时却留下红色标记。
谢谢,抱歉我的英语不好,我用的是谷歌翻译!
编辑:
代码:
var yAxis = [{
labels: {
align: 'right',
x: -3
},
title: {
text: 'Cierre'
},
type: 'logarithmic',
height: '65%',
lineWidth: 2,
offset: 40
}, {
labels: {
align: 'right',
x: -3
},
title: {
text: 'RSC Mansfield'
},
top: '70%',
height: '15%',
offset: 40,
lineWidth: 2
}, {
labels: {
align: 'right',
x: -3
},
title: {
text: 'Atlas'
},
top: '90%',
height: '10%',
offset: 40,
lineWidth: 2
}];
var series = [{
type: type,
name: 'Data',
id: 'price',
data: scope.chart.data,
color: '#000000',
lineWidth: 2,
dataGrouping: {
enabled: false
}
}, {
type: 'coloredline',
name: 'WMA 30',
data: getWMA(scope.chart.wma),
lineWidth: 1,
dataGrouping: {
enabled: false
}
}, {
type: 'flags',
data: scope.chart.dividend,
onSeries: 'price',
color: '#E68A00'
}, {
type: 'area',
name: 'RSC Mansfield',
data: scope.chart.mansfield,
yAxis: 1,
color: '#009900',
fillColor: '#009900',
negativeColor: '#CC0000',
negativeFillColor: '#CC0000',
fillOpacity: 0.5,
dataGrouping: {
enabled: false
}
}, {
type: 'column',
name: 'Atlas',
data: scope.chart.atlas,
yAxis: 2,
color: '#CC0000',
dataGrouping: {
enabled: false
}
}];
$('.chart-container').highcharts('StockChart', {
rangeSelector: {
inputEnabled: $('.chart-container').width() > 480,
selected: 4
},
title: {
text: title
},
yAxis: yAxis,
series: series,
plotOptions: {
series: {
turboThreshold: 3000 //set it to a larger threshold, it is by default to 1000
}
}
});
最佳答案
- 工具提示问题 - 您可以使用:
或者 b) tooltip.formatter
- 列问题 - 设置
borderWidth: 1
将用边框覆盖该点。 演示:http://jsfiddle.net/Lzv9d4qs/
这看起来像一个错误,所以我在这里报告了它 - https://github.com/highcharts/highcharts/issues/5146
关于javascript - 使用 Highcharts 修正图 TableView ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36165495/