无法在其他函数中创建剑道图表valueAxis模板标签

Cannot create kendo chart valueAxis template label in another function

本文关键字:valueAxis 标签 其他 函数 创建      更新时间:2023-09-26
valueAxes: [
{
    name: "A",
    labels: {
        visible: true,
        template: temp("#= value #"),
        color: "#888"
    },

function temp(value){
return (value/1000) // in here i cant do any operation :( 
}

怎么做这种手术?这个操作值不会传递给我的函数

应该是

template: "#= temp(value) #"