jqPlot饼图渲染器中的图例方块未显示

8

我正在使用jqPlot,但是饼图渲染器中应该显示的彩色方块未出现。我想知道这是否与我使用Twitter Bootstrap有关?我没有使用其他CSS库。

        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,                                
            }
        });
1个回答

18

1
非常感谢!就是这样。 - Adam Levitt
1
非常感谢!这样做了,我的图表看起来好多了! - Lukas
非常高兴你们仍然发现这个答案有用。祝一切顺利 :) - Boro

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接