Javascript 用海图校正海图视图
我希望你能帮我解决一些问题 当我设置图片时,我有两个问题 首先:我想知道如何抑制小时和分钟休假,只留下工具提示日期 第二:我想知道为什么下面的图表,它取0值,当它不需要留下任何东西时,它会留下红色标记 谢谢,对不起我的英语,我用谷歌翻译 编辑: 代码:Javascript 用海图校正海图视图,javascript,charts,highcharts,highstock,Javascript,Charts,Highcharts,Highstock,我希望你能帮我解决一些问题 当我设置图片时,我有两个问题 首先:我想知道如何抑制小时和分钟休假,只留下工具提示日期 第二:我想知道为什么下面的图表,它取0值,当它不需要留下任何东西时,它会留下红色标记 谢谢,对不起我的英语,我用谷歌翻译 编辑: 代码: 工具提示问题-您可以使用: (a) 或 (b) 列问题-设置边框宽度:1将用边框覆盖该点。 演示: 这看起来像个虫子,所以我在这里报告了- 工具提示问题-您可以使用: (a) 或 (b) 列问题-设置边框宽度:1将用边框覆盖该点。 演示: 这看
边框宽度:1
将用边框覆盖该点。
演示:边框宽度:1
将用边框覆盖该点。
演示:这看起来像个bug,所以我在这里报告了-在这里发布你的代码,谷歌翻译…太酷了!在这里发布你的代码,谷歌翻译…太酷了!Kacper的答案非常好,也请检查此示例以设置工具提示Kacper的答案非常好,也请检查此示例以设置工具提示
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
}
}
});