Qlik Community

Qlik Sense Integration, Extensions, & APIs

Discussion board where members can learn more about Integration, Extensions and API’s for Qlik Sense.

rbartley
Valued Contributor

How can the measure and dimension labels be set in the Qlik Sense Mashup API?

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


Tags (2)
1 Solution

Accepted Solutions
rbartley
Valued Contributor

Re: How can the measure and dimension labels be set in the Qlik Sense Mashup API?

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");

    });

2 Replies
rbartley
Valued Contributor

Re: How can the measure and dimension labels be set in the Qlik Sense Mashup API?

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");

    });

rbartley
Valued Contributor

Re: How can the measure and dimension labels be set in the Qlik Sense Mashup API?

Community Browser