Tip:Ifthefailingexpressionisknowntobelegallyrefertosomethingthat's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
----
----
FTL stack trace ("~" means nesting-related):
- Failed at: ${item.getCatalogField()?lower_case} [in template "TEMPLCODE_en_US" at line 8, column 19]
----
};
/**
* 图表自定义参数集合
*
* @memberof ChartBase
*/
public chartUserParams:any ={
};
/**
* 图表基础动态模型
*
* @memberof ChartBase
*/
public chartBaseOPtion:any = {};
/**
* 图表绘制最终参数
*
* @memberof ChartBase
*/
public chartRenderOption:any = {};
/**
* 初始化图表所需参数
*
* @type {}
* @memberof ChartBase
*/
public chartOption:any = {
title:{
show:true ,
text:'图表(k线图)',
subtext:''
},
legend:{
show:true
},
grid:[
{
}
],
xAxis: [
{
gridIndex:0,
position:"bottom",
type:'category',
name:'分类',
}
],
yAxis:[
{
gridIndex:0,
position:"top",
type:'value',
name:'金额',
}
],
tooltip:{
show:true
},
dataset:[],
series:[
{
id:'kline',
name:'k线图',
type:'line',
xAxisIndex:0,
yAxisIndex:0,
datasetIndex:0,
encode: {
x: [],
y: []
}}
]
};
/**
* 刷新
*
* @param {*} [args={}]
* @memberof ChartBase
*/
public refresh(args?: any) {
this.load(args);
}
/**
* 获取图表数据
*
* @returns {*}
* @memberof ChartBase
*/
public load(opt?:any) {
let _this = this;
const arg: any = { ...opt };
const parentdata: any = {};
this.$emit('beforeload', parentdata);
Object.assign(arg, parentdata);
let tempViewParams:any = parentdata.viewparams?parentdata.viewparams:{};