This is a migrated thread and some comments may be shown as answers.

Kendo UI Charts Wrapper | Category axis labels template

1 Answer 116 Views
This is a migrated thread and some comments may be shown as answers.
SysCo
Top achievements
Rank 1
Iron
Iron
SysCo asked on 29 Jan 2020, 11:09 AM

Hi,

Is there a way to use Vue Templates (as per explain here: https://www.telerik.com/kendo-vue-ui/components/framework/vue-templates/#toc-using-single-file-components) for category labels in Kendo Charts ?

Because it does work with the Scheduler Event Template, but with the Chart all I can get is to print a div text (it is really print as his, not an empty div):

<div id="kendoGUID"></div>

CodeSandBox: https://codesandbox.io/s/vue-template-ddl-d2jhq

 

Thanks for your help !


1 Answer, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 31 Jan 2020, 07:35 AM

Hi,

I am afraid that using DOM elements within the categoryAxis.labels.template is currently not supported in the Kendo Chart. As a consequence, it will not work in the Vue Chart wrapper either. What you will be allowed to use in that case is only the Kendo string template, as shown in the Kendo jQuery API reference:

https://docs.telerik.com/kendo-ui/api/javascript/dataviz/ui/chart/configuration/categoryaxis.labels#categoryaxislabelstemplate

Regards,
Veselin Tsvetanov
Progress Telerik

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Asked by
SysCo
Top achievements
Rank 1
Iron
Iron
Answers by
Veselin Tsvetanov
Telerik team
Share this question
or