2016-08-09 9 views
2

ReactアプリケーションでChartJSを使用して縦棒グラフを表示する 各棒の下にラベルを表示する必要がありますが、ダニ)。ここで私はこれまで試したものです:これはすべてのものを示してChartjsはラベルを表示しますがダニは表示しません

xAxes : [ { 
     display : true, // set this to false to hide the labels under the bars 
     ticks: { 
      display : false 
     } 
    }] 

xAxes : [ { 
      display : true, // set this to false to hide the labels under the bars 
      maxTicksLimit: 0 
     }] 

は、これは私が何をしたいの反対は、それはダニではなく、ラベルを示していません

提案がありますか?

答えて

1

グリッド線表示をfalseに設定するのはどうですか?

xAxes: [{ 
    gridLines: {display:false} 
    }] 

FIDDLE HERE

+1

乾杯の男が、それは働きました! –

関連する問題