Hi,
i created a bar chart like bellow.
[
{ sales:"20", customer:"Mike", date: "2015-1-1" },
{ sales:"30", customer:"Jack", date: "2015-2-1" }
]
webix.ui({
view:"chart",
type:"bar",
value:"#sales#",
xAxis:{
template:"#customer#"
},
yAxis:{
},
legend:{
layout:"x",
template:"#customer#"
}
...
});
This works OK and i get a legend with all my customers.
However the “customers” in the legend are not “clickable”.
I would like to be able to click on legend items and hide/show that customer in the bar chart. How should i do that?
Best regards