2017-01-30 102 views
0

我使用圖表js繪製了線圖。它工作得很好,但問題是它會從0開始所有行,但我需要在圖形行和軸行之間填充一些內容。我需要一個像如何在圖表js中添加X軸填充線圖

enter image description here

我需要這種差距(紅色標記的)。我怎麼能做到這一點?

+0

請提供您的代碼,請 – Mistalis

+0

代碼與此類似https://jsfiddle.net/vz4qhqpw/154/ – Arunkumar

回答

0

the fiddle你提供一個取巧的辦法將是$scope.labels$scope.data一個null推在第一位置:

$scope.labels.unshift(''); 
$scope.data[0].unshift(null); 
$scope.data[1].unshift(null); 

一開始你有:

enter image description here

,你會有:

enter image description here