Legend in pie chart

Hi,
How can I show actual series in pie? i.e. for data

{ sales:"20", month:"Jan", color: "#ee3639" },
{ sales:"30", month:"Fen", color: "#ee9e36" },
{ sales:"50", month:"Mar", color: "#eeea36" },

I want legend to show word “sales” instead of values of month.
How can I make legend to show multiple series but only one active similar to sample of line chart (http://docs.webix.com/samples/08_chart/05_line_chart/07_legend.html)
but showing only one series at a time.
For example:

{ sales1:"20", sales2:"200", month:"Jan", color: "#ee3639" },
{ sales1:"30", sales2:"300", month:"Fen", color: "#ee9e36" },
{ sales1:"50", sales2:"500", month:"Mar", color: "#eeea36" },

so legend will show sales1 as active and sales2 inactive.

Thank you.

Hello,

You can use some other solution instead of legend to change the value of a chart. For example you may try to use segmented button as in:

http://webix.com/snippet/ebaddaa3

Also you can use template view with html that will show two clickable labels.