jqPlot pieRenderer图例方块未显示

Ada*_*itt 8 jqplot

我正在运行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,                                
            }
        });
Run Code Online (Sandbox Code Playgroud)

Bor*_*oro 18

你确定你是装载CSSjqPlot正确(即URL/href是指向正确的位置)?

这是加载了jquery.jqplot.css的代码.

这是没有css的代码.

这个是jquery.jqplot.css和bootstrap(没有jQuery插件下载,也没有链接img下载附带的文件夹).这里都显示正确,因此您必须仔细检查hrefjquery.jqplot.css.