To clarify my question, my chart consists of only one vertical bar, is there a way to display 2 sets of labels for each subpart (or segment) as follows: (a) a count value inside the subpart and (b) a text value to the right outside the subpart.
Please refer to the attached image in the original post above.
Thank you
0
Tsvetina
Telerik team
answered on 08 Mar 2019, 01:40 PM
Hi Marjaneh,
To display such a label, you can show the default series label and assign it a visual function which appends and additional Text element to it:
seriesDefaults: {
type: "column",
stack: true,
labels: {
visible: true,
position: "insideBase",
background: "transparent",
visual: function(e){
var defaultLbl = e.createVisual(),
rect = e.rect.bottomRight();
var newPosition = [rect.x + 10, rect.y-20];
var additionalLabel = new kendo.drawing.Text(e.series.name, newPosition);
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.