
Contributor II
2024-02-12
01:37 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to specify line color in line graph in Qlik Cloud
I have a line graph with 9 measures as lines from 3 different categories. I would like to easily distinguish lines by category using a combination of color and style. First, can i really only have a solid or a dashed line? There are no other styles? And I cannot figure out how to specify the color. ideally by measure name but would accept having to do this manually but there doesn't appear to be a way to specify a color for each measure.
826 Views
1 Solution
Accepted Solutions

Contributor II
2024-02-13
01:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-
Expression-based Coloring:
- Under chart properties, navigate to "Colors and Legend" and disable "Use Library Colors."
- Choose "Color by Expression."
- Use a conditional expression (e.g.,
Pick(Category = 'A', $Green, Category = 'B', $Red, $Blue)
) to assign specific colors based on category values.
-
Measure Color Settings:
- Edit each measure individually.
- Under "Appearance," locate the "Measure color" option.
- Assign desired colors for each measure belonging to the same category. This ensures consistency within categories.
797 Views
1 Reply

Contributor II
2024-02-13
01:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
-
Expression-based Coloring:
- Under chart properties, navigate to "Colors and Legend" and disable "Use Library Colors."
- Choose "Color by Expression."
- Use a conditional expression (e.g.,
Pick(Category = 'A', $Green, Category = 'B', $Red, $Blue)
) to assign specific colors based on category values.
-
Measure Color Settings:
- Edit each measure individually.
- Under "Appearance," locate the "Measure color" option.
- Assign desired colors for each measure belonging to the same category. This ensures consistency within categories.
798 Views
