无法在另一个函数中创建 kendo 图表 valueAxis 模板标签
Cannot create kendo chart valueAxis template label in another function
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) #"
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) #"