Instead of replicating one element several times, parameters can be used to create just one element and configure it in the placement of the layout
Example element:
"id": "chart_kpi",
"parameters": [
{
"name": "p_type",
"path": "sourceOptions.sql.p_type"
},
{
"name": "p_timeframe",
"path": "sourceOptions.sql.p_timeframe"
},
{
"path": "config.series[columnName=target].name",
"name": "p_target_name"
},
{
"path": "config.series[columnName=value].name",
"name": "p_value_name"
},
{
"path": "config.yAxis.title.text",
"name": "p_yAxis_text"
}
]
Example placement in the layout:
{
"containerId": "kpi6c",
"elementId": "chart_kpi",
"parameterValues": {
"p_type": "Deal Signed",
"p_target_name": "Target",
"p_value_name": "Test",
"p_yAxis_text":"Y Axis",
"p_timeframe":"Month"
}
}