Hi.
my chart bar design and legend items design does not match up
my kendo configuration
$("#my-score-chart").kendoChart({
transitions: false,
tooltip: { visible: false },
legend: {
orientation: 'horizontal',
position: "bottom"
},
plotArea: {
margin: { top: 20, bottom: 20, left: 20, right: 20 }
},
seriesDefaults: {
type: "bar",
spacing: 0,
gap:10,
highlight: { visible: false },
labels: {
visible: true,
position: "outsideEnd",
template: "#= value #"
}
},
series: [
{ name: "2025", data: [75, 75], color: "#254599" },
{ name: "2024", data: [50, 50], color: "#92A7E0" },
{ name: "2023", data: [25, 35], color: "#FFFFFF", border: { width: 1, color: "#616D80", dashType: "solid" } }
],
valueAxis: {
visible: false
},
categoryAxis: {
categories: ["Strategy & Leadership", "Governance"],
majorGridLines: { visible: false },
labels: { color: "#000" }
}
});
Hi Benjamin,
Could you pelase share a screenshot of what is not matching? I am not sure I understand the inquiry.
Regards,
Nikolay
hi @Nikolay,
updates my image
I would think that visual function would be where you would need to do that. But as this dojo shows, it does not get invoked when the chart type is bar. Change the type to line and it does.
Perhaps @Nikolay can comment on this?
Hi,
I would suggest usinglegend.item.visual option as demonstrated in the Dojo linked here - https://dojo.telerik.com/xgleFYZQ.
- https://www.telerik.com/kendo-jquery-ui/documentation/api/javascript/dataviz/ui/chart/configuration/legend.item#legenditemvisual
I hope this helps.
Regards,
Neli