2012-05-29 12 views
8

私はjqPlotを実行していますが、何らかの理由で円のレンダラーの凡例に表示される色の四角が表示されません。私はそれがTwitterのブートストラップを使っているという事実と関係があるのだろうかと思っています。私は他のCSSライブラリを使用していません。jqPlot pieRenderer凡例の四角が表示されない

 var plot1 = jQuery.jqplot('chartdiv', [graphData], 
     { 
      grid: { 
       shadow: false, 
       background: '#FFFFFF',                       
      }, 
      seriesDefaults: { 
       // Make this a pie chart. 
       renderer: jQuery.jqplot.PieRenderer, 
       rendererOptions: { 
        // Put data labels on the pie slices. 
        // By default, labels show the percentage of the slice. 
        showDataLabels: true, 
        padding: 20, 
        startAngle: 270 
       } 
      }, 
      legend: { 
       show: true, 
       location: 'e', 
       fontSize: 11, 
       marginTop: 10,         
      } 
     }); 

答えて

18

あなたは(すなわち、URL/HREFを適切な場所に向いている)が正しくjqPlotCSSをロードしていますか?ここでは、すべての

This is your code with jquery.jqplot.css loaded.

This is your code without the css.

This one is with both the jquery.jqplot.css and the bootstrap (downloaded without jQuery plugins and not linking the img folder that comes with the download).ので、あなたがjquery.jqplot.cssのhrefを再確認しなければならない、正しく表示されます。

+1

ありがとうございます!それはそれだった。 –

+1

ありがとうございました!これでやったし、私のグラフももっと良く見える! – Lukas

+1

魅力のように働いて...... – Gowri

関連する問題