Skip to main content

Integration, Extension & APIs

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

Announcements
Skip the ticket, Chat with Qlik Support instead for instant assistance.
cancel
Showing results for 
Search instead for 
Did you mean: 
rbartley
Specialist II
Specialist II

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


1 Solution

Accepted Solutions
rbartley
Specialist II
Specialist II
Author

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

    });

View solution in original post

2 Replies
rbartley
Specialist II
Specialist II
Author

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

    });