Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
How can the measure and dimension labels be set in the Qlik Sense API? I have looked in the API reference and ound the "show" property of dimensionAxis but I cannot see any properties that refer to label values themselves. For example, here's an excerpt from my .js file
app.visualization.create('barchart',["COUNTRY","=AVG({<TOTAL_FLAG={0}>}BASELINE_DATA)"],
{
"title":"On the fly barchart",
"color":{"auto":false,"mode":"byDimension","singleColor":3},
"dimensionAxis":{"show":"labels"},
"measureAxis":{"show":"labels"}
}
).then(function(barchart){
barchart.show("QV01");
});
Thanks in advance.
Richard
Sorry, I just found the answer in the Columns parameter.
app.visualization.create('barchart',["COUNTRY",
{"qDef": {"qDef": "=AVG({<TOTAL_FLAG={0}>}BASELINE_DATA)", "qLabel": "Indicator Value"}}
],
{
"title":"On the fly barchart",
"color":{"auto":false,"mode":"byDimension","singleColor":3},
"dimensionAxis":{"show":"labels"},
"measureAxis":{"show":"all"}
}
).then(function(barchart){
barchart.show("QV01");
});
Sorry, I just found the answer in the Columns parameter.
app.visualization.create('barchart',["COUNTRY",
{"qDef": {"qDef": "=AVG({<TOTAL_FLAG={0}>}BASELINE_DATA)", "qLabel": "Indicator Value"}}
],
{
"title":"On the fly barchart",
"color":{"auto":false,"mode":"byDimension","singleColor":3},
"dimensionAxis":{"show":"labels"},
"measureAxis":{"show":"all"}
}
).then(function(barchart){
barchart.show("QV01");
});