PDA

View Full Version : How do I have different labels on the pie and on the pie's legend



ahsec
8 Nov 2012, 7:08 AM
Hi

I've been trying desperately to have a pie hold a custom field on the pie area (i.e percent of the total), and a label of the related field on the legend..but for some reason it only allows to have the same label on the pie and on the legend

How do I do it? :-)

Thanks :)

mitchellsimoens
10 Nov 2012, 6:14 AM
It shows based on the title or yField value of the series

da_b0uncer
10 Apr 2013, 5:41 AM
I used something like this:


{
type: 'pie',
xField: 'Visits',
label: {
field: 'Browsers'
}
}

"on" the series, I get the browsers, but in the legend is "Visits Visits Visits Visits Visits"

how do I get the browsers into the legend?