如何在顶点仪表板中给饼图结果赋颜色,我给出了饼图系列内部使用的查询
例如:如果状态为“已批准”,则结果显示为绿色;如果状态为“否”,则结果显示为红色;如果“待处理”,则结果显示为黄色
以下是饼图区域内使用的查询:
SELECT sum(cheque_amount) tot_Amt,
CASE
WHEN status='Approved' THEN status
WHEN status='Rejected' THEN status
WHEN status='Pending' THEN status
END AS STATUS`enter code here`
FROM PDC_CHEQUES
group by status
答案 0 :(得分:0)
您可以在查询中有一列来定义所需的颜色,例如
,case
when status = 'Approved' then 'u-color-5'
when status = 'Rejected' then 'u-color-9'
end as col_colour
然后将该列映射到统计图属性中的color属性,在其中映射其他列。
这些颜色在UT application中定义。
答案 1 :(得分:0)