Hi there,
Â
I am working with the Views App in Celonis Studio, and one of my graphs is a stacked barchart, with two KPIs.
Â
I am looking for a way to set the color for each KPI separately.
Â
I already found a way to include diverging colors for both KPIs treated as one group, but that is not optimal because I cannot choose the color that I want since there are not so many options for that setting. So I would like to set the color for each KPI independently.
Â
The YAML Code looks like this
Â
id: chart-xxxxxx
type: chart
settings:
 name: NAME
 showLegend: true
# colors: DIVERGING_RED_TO_GREEN (THIS IS THE LINE I WANT TO REPLACE)
 encodings:
  x:
   field: RECORD.ATTRIBUTE
   type: ordinal
 visuals:
  - mark:
    type: bar
    bandwidth: 0
   encodings:
    y:
     stack:
      - KPI1
      - KPI2
   legend: true
   id: b9ddxxxx
   order: 100
 sortBy: ]
 limit: 1000
Â
Â
Thank you very much!
Best regards,
Javier