Google Data Studio 方差图(正负数不同颜色)

Google Data Studio Variance chart (positive and negative numbers different colour)

有谁知道如何制作带有绿色正条和红色负条的方差图。为负值反转颜色似乎是一项基本任务,但我找不到如何去做。

谢谢

Metric 部分(其中各个字段的名称是Metric),并在 样式选项卡 中,将 Positive 的条形颜色设置为 绿色NegativeRed 然后勾选 Stacked Bars:

1) 阳性(颜色:绿色)

IF(Metric >= 0, Metric, NULL)

2)负(红:红)

IF(Metric >= 0, NULL, Metric)

Editable Google Data Studio Report (Embedded Google Sheets 数据源)和一张 GIF 来详细说明: