How to display different data and label it in a different way

0 Answers 75 Views
Charts Label
Konrad
Top achievements
Rank 1
Konrad asked on 24 Jun 2022, 10:23 AM | edited on 24 Jun 2022, 10:47 AM

I've got a bar chart and I would like to display different label than value, but I don't know how to do it. Tried with [name] property for the <kendo-chart-series-item>, but that does not work - it just show the legend next to chart itself, and I'd like to keep label on the bar. 

My code:

<kendo-chart-series>
        <kendo-chart-series-item
            *ngFor="let item of series"
            [data]="item.data" // <--- array of numbers, I'd like to replace number with string
            [type]="item.type"
            [color]="item.color"
            [border]="{
                width: 0
            }"
        >
            <kendo-chart-series-item-labels
                [background]="item.background || 'rgba(255, 255, 255, 0.5)'"
                [position]="item.labelPosition"
                [visible]="!!item.labelPosition"
            ></kendo-chart-series-item-labels>
        </kendo-chart-series-item>
    </kendo-chart-series>
EDIT: sorry for stupid title, some edition fail occured...

No answers yet. Maybe you can help?

Tags
Charts Label
Asked by
Konrad
Top achievements
Rank 1
Share this question
or