I would like to know how to remove padding between Path2
and Path3
since legend.label.padding
is applied to all of them.
legend: {
visible: true,
labels: { padding: 10}
},
series: [{
name: "Path1",
data: stats,
markers: {
visible: false,
color: 'red'
}
}, {
name: "Path2",
data: stats2,
markers: {
visible: false
},{
name: "Path3",
data: stats2,
markers: {
visible: false,
color: 'blue'
}
}],
The easiest way is to manually select this element in js and set your own transformation matrix:
But this is not so good solution, because it is not resistant to changes in Kendo library
EDIT: You can also try to use legend.item.visual property to setup legend conditionally in function: http://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart#configuration-legend.item.visual