Jquery jqPlot饼图-删除数据标签背景

Jquery jqPlot饼图-删除数据标签背景,jquery,jqplot,Jquery,Jqplot,见下图;目标是删除标签的背景(即透明背景)。我在jqPlot文档和API上下翻找,尝试各种设置组合。。。甚至试图覆盖我认为是源CSS类的内容: 一点是,只有当我试图呈现饼图时,才会发生这种情况。。。任何其他类型的图表都会自动显示没有背景的标签。下面是我的代码的基本迭代,从所有实验中清理出来: 相关内容包括: // excanvas.js // jquery.jqplot.min.js // plugins/jqplot.pieRenderer.min.js // jquery.jqplot.c

见下图;目标是删除标签的背景(即透明背景)。我在jqPlot文档和API上下翻找,尝试各种设置组合。。。甚至试图覆盖我认为是源CSS类的内容:

一点是,只有当我试图呈现饼图时,才会发生这种情况。。。任何其他类型的图表都会自动显示没有背景的标签。下面是我的代码的基本迭代,从所有实验中清理出来:

相关内容包括:

// excanvas.js
// jquery.jqplot.min.js
// plugins/jqplot.pieRenderer.min.js
// jquery.jqplot.css
$.jqplot('PIE', [[["CE",14],["CNB",0],["CD",10],["BD",197],["PD.",9],["AO",68]]],
{
grid:
    {
    drawBorder:false,
    shadow:false,
    },
gridPadding:{top:0,right:0,bottom:0,left:0},
seriesColors:[\"#2D8659\",\"#862D2D\",\"#2D8686\",\"#2D2D86\",\"#59862D\",\"#B4B43C\"],
legend:{show:true},
seriesDefaults:
    {
    renderer:$.jqplot.PieRenderer,
    rendererOptions:
        {
        showDataLabels:true,
        dataLabelPositionFactor:.75,
        shadowOffset:0,
        lineWidth:3,
        sliceMargin:4,
        startAngle:-90,
        highlightMouseOver:false,
        padding:10
        }
    }
});
JQ:

// excanvas.js
// jquery.jqplot.min.js
// plugins/jqplot.pieRenderer.min.js
// jquery.jqplot.css
$.jqplot('PIE', [[["CE",14],["CNB",0],["CD",10],["BD",197],["PD.",9],["AO",68]]],
{
grid:
    {
    drawBorder:false,
    shadow:false,
    },
gridPadding:{top:0,right:0,bottom:0,left:0},
seriesColors:[\"#2D8659\",\"#862D2D\",\"#2D8686\",\"#2D2D86\",\"#59862D\",\"#B4B43C\"],
legend:{show:true},
seriesDefaults:
    {
    renderer:$.jqplot.PieRenderer,
    rendererOptions:
        {
        showDataLabels:true,
        dataLabelPositionFactor:.75,
        shadowOffset:0,
        lineWidth:3,
        sliceMargin:4,
        startAngle:-90,
        highlightMouseOver:false,
        padding:10
        }
    }
});
提前感谢所有有用的回复

看到了吗

它起作用了

代码

的确如此。谢谢,先生,你间接地帮我解决了这个问题!我们以前的编辑器将所有div全局设置为具有#FFF背景。。。直到我看了你例子中的CSS,我才明白这一点。