2017-02-17 60 views

回答

0

中沒有數據highcharts的情況下,你可以使用這個插件 no-data-to-display.js

Highcharts.chart('container', { 
 

 
    chart: { 
 
     type: 'bubble', 
 
     plotBorderWidth: 1, 
 
     zoomType: 'xy' 
 
    }, 
 

 
    title: { 
 
     text: 'No Date Availavle' 
 
    }, 
 
});
<script src="https://code.highcharts.com/highcharts.js"></script> 
 
<script src="https://code.highcharts.com/highcharts-more.js"></script> 
 
<script src="https://code.highcharts.com/modules/no-data-to-display.js"></script> 
 
<div id="container" style="min-width: 310px; max-width: 600px; height: 400px; margin: 0 auto;"></div>

+0

http://jsfiddle.net/Kondaldurgam/b9k5avdj/我加了副標題這樣的,但我想改善字體大小,這是寫或錯。 – Kondal

+0

在沒有數據的情況下,它不適合在highcharts數據(字幕)中進行更改,從而導致您在用例數據中需要使用該字幕..所以,最好使用無數據顯示插件。你可以根據你的需要輕鬆地定製插件。 –

+0

Thanks @bijay raj – Kondal