Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
nayeccalderon
Partner - Contributor II
Partner - Contributor II

How to assign a different color to each measure in a table extension

Hi,

I'm new to building extensions, and I need to be able to assign a different color to each measure.  I have created the definition object in the "items" property within the measure's definition; but, it doesn't work. 

how should I write the paint function to make it change my measure text color?

Please help!!!

 measures: {
            uses: "measures",
            min: 1,
            max: 1,
            items: {
                colorTextExpression: {
                    type: "string",
                    label: "Text color expression",
                    ref: "qAttributeExpressions.0.qExpression",
                    component: "expression",
                }

 

Labels (2)
1 Reply
ajaykakkar93
Specialist III
Specialist III

Hi

Please look in this extension it will help you for the same

https://github.com/ajaykakkar93/TableBox/blob/master/prop.js

Please mark the correct replies as Solution. Regards, ARK
Profile| GitHub|YouTube|Extension|Mashup|Qlik API|Qlik NPrinting