Javascript 我想在海图中显示没有背面网格线可用的数据
我身上没有数据,所以我没有显示可用的数据,我想在背面显示网格线,这可以显示吗Javascript 我想在海图中显示没有背面网格线可用的数据,javascript,highcharts,highstock,Javascript,Highcharts,Highstock,我身上没有数据,所以我没有显示可用的数据,我想在背面显示网格线,这可以显示吗 Highcharts.chart('container', { chart: { type: 'bubble', plotBorderWidth: 0, zoomType: 'xy' }, title: { text: 'Highcharts bubbles with radial gradient fill' }, xAxis: { gridLineWidth: 1
Highcharts.chart('container', {
chart: {
type: 'bubble',
plotBorderWidth: 0,
zoomType: 'xy'
},
title: {
text: 'Highcharts bubbles with radial gradient fill'
},
xAxis: {
gridLineWidth: 1
},
yAxis: {
startOnTick: false,
endOnTick: false
},
series: [ ]
});
您可以查看
showEmpty
属性,但它不会显示网格线,只显示轴线和标题。如果需要轴线,则需要数据。或者,您可以设置一个背景图像,在没有数据时显示网格线。我想知道如何设置xAxis和yAxis的初始最小值和最大值。这可能会帮助你在没有数据的情况下在图表上显示网格线:我完全了解你所做的。但现在我不想在网格线前面显示任何可用的数据,如在Grzegorz-Blachliński示例中所做的那样,为文本设置zIndex
function(chart) { // on complete
chart.renderer.text('No Data Available', 200, 195)
.attr({
zIndex: 99
})
.css({
color: '#4572A7',
fontSize: '16px'
})
.add();
});