Groups
Groups
Sign in
Groups
Groups
Flot graphs
Conversations
About
Send feedback
Help
how do you set a custom font size in flot pie chart?
525 views
Skip to first unread message
Mike Dylan
unread,
Feb 5, 2015, 12:12:26 PM
2/5/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to flot-...@googlegroups.com
I am trying to set the font size of the pie chart as this:
function setPieOptions() {
options = {
series: {
pie: {
show: true,
combine: {
color: '#999',
threshold: 0.1
}
}
},
legend: {
show: false
},
grid: {
hoverable: true,
clickable: true
}
xaxis: {
size: 14
}
yaxis: {
size: 14
}
}
}
I get syntax error. How do you set the font size of labels?
Thanks
Sean Poulter
unread,
Feb 6, 2015, 6:08:04 PM
2/6/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to flot-...@googlegroups.com
You have a few options:
The .pieLabel class is applied to the label elements when they're inserted
You can also use the labelFormatter to return your own HTML block, with the CSS that you prefer
You'll find a pretty good example in this JSFiddle here -
http://jsfiddle.net/G4tAK/
Reply all
Reply to author
Forward
0 new messages