Charts Flot-甜甜圈饼图-自定义图例
我使用创建了一个甜甜圈饼图 有没有办法定制“传奇”?我想把GFavorite、G2和G3的字体改为粗体。我补充说:Charts Flot-甜甜圈饼图-自定义图例,charts,flot,legend,pie-chart,Charts,Flot,Legend,Pie Chart,我使用创建了一个甜甜圈饼图 有没有办法定制“传奇”?我想把GFavorite、G2和G3的字体改为粗体。我补充说: pie: { innerRadius: 0.5, show: true, formatter: function(label, series){ return '<div style="font-style:bold">'; } } pie:{ 内半径:0.5, 秀:没错, 格式化程序:函数(标签,系列){
pie: {
innerRadius: 0.5,
show: true,
formatter: function(label, series){
return '<div style="font-style:bold">';
}
}
pie:{
内半径:0.5,
秀:没错,
格式化程序:函数(标签,系列){
返回“”;
}
}
但是它没有任何作用。您想使用它:
labelFormatter: function(label, series) {
// series is the series object for the label
return '<span style="font-style:bold">' + label + '</span>';
}
标签格式:函数(标签,系列){
//系列是标签的系列对象
返回“”+标签+“”;
}
CSS不正确
font-weight
是使用粗体而非字体样式的正确标记
请参阅:图例使用分配给系列的
标签,但看起来您已经知道了这一点。那么,你想要什么样的“定制”?亲爱的马克,很抱歉迟到了。多谢各位much@Mark,嘿,你对jquery任务感兴趣吗?