Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Manuel174102
Creator
Creator

how to change color scheme in graph by measure

Hello everyone, 

I have a graph which I coloured by measure. It is taking a color scheme by default, which goes from a dark blue color down to a purple color.  

I would like to have two different colours instead of these two. How could I do that?

 

greetings,

 

Manuel

Labels (1)
2 Solutions

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

Hello,

 

You can modify the predefined sequential gradient colors with a custom theme. Here is an example [1] where I have recently demonstrated the steps.

 

Essentially, you can create your own custom color scales within a custom theme and then apply that custom color scheme where needed. 

 

The outcome:

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members. 
 

 

---

[1] https://community.qlik.com/t5/App-Development/How-to-change-color-Map-chart-in-sequential-gradient/m...

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

You can use this web site https://sensetheme.com/

You can "easily" use a existing theme or create your own.

After your theme was created, you need to import https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/Extensions/Content/Sense_Extensions/...

 

And for using it https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/Apps/style-app.htm

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!

View solution in original post

5 Replies
Andrei_Cusnir
Specialist
Specialist

Hello,

 

You can modify the predefined sequential gradient colors with a custom theme. Here is an example [1] where I have recently demonstrated the steps.

 

Essentially, you can create your own custom color scales within a custom theme and then apply that custom color scheme where needed. 

 

The outcome:

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members. 
 

 

---

[1] https://community.qlik.com/t5/App-Development/How-to-change-color-Map-chart-in-sequential-gradient/m...

Help users find answers! Don't forget to mark a solution that worked for you! 🙂
Manuel174102
Creator
Creator
Author

Hello Andrei, thanks for answering. 

It is not working out for me. 

I tell u what I did, so I went to the data load editor, I added a new section and I wrote the following code: 

"scales":[
{
"name": "Light colors sequential gradient",
"translation" : "Light colors sequential gradient",
"type": "gradient"
"propertyValue": "sg",
"scale": ["#8C8C8C","FBFBFB2]
}
]

 

when I try to load it, it gives me an error. it says "unknown statement"

Andrei_Cusnir
Specialist
Specialist

Hello @Manuel174102,

 

This code is not for Data load editor, as it is not a script for loading data. What you need to do is to create a custom theme for your app and then apply the custom theme to your app. Further detailed instructions can be found here [1].

 

So essentially the steps that you need to follow are:

  1. Create a QEXT file that will have your theme's details inside
  2. Create a JSON file that will have your theme's configuration inside
  3. Inside the JSON file is where you need to put the code
  4. Then you add these files in specific folder for Qlik Sense to read it
  5. Edit your app and apply the custom theme.
  6. All the steps are described in the documentation [1]

I hope that this information is helpful.

 

---

[1] https://help.qlik.com/en-US/sense-developer/May2022/Subsystems/Extensions/Content/Sense_Extensions/c...

Help users find answers! Don't forget to mark a solution that worked for you! 🙂
Manuel174102
Creator
Creator
Author

It is way more complicated than what I thought. I do not even know how to create a QEXT file. I am new in qlik sense 😞 

Aurelien_Martinez
Partner - Specialist II
Partner - Specialist II

Hi,

 

You can use this web site https://sensetheme.com/

You can "easily" use a existing theme or create your own.

After your theme was created, you need to import https://help.qlik.com/en-US/sense-developer/June2020/Subsystems/Extensions/Content/Sense_Extensions/...

 

And for using it https://help.qlik.com/en-US/sense/April2020/Subsystems/Hub/Content/Sense_Hub/Apps/style-app.htm

Aurélien

Help users find answers! Don't forget to mark a solution that worked for you!