是否可以将条形图设为双 y 轴?
我有一个包含 4 个条形的条形图,由查询生成,返回 4 行。
有没有办法让我为每个条形设置不同的颜色,并在右侧指定每个条形的颜色和标签,而不是系列名称?
单击图表系列之一并查找“分配到 Y 轴”属性
这与“颜色”属性旁边的情况不同。您可以从 SQL 中获取此颜色,并使用 &COLUMN_ALIAS 替换您的值。句法。
链接表单帖子中示例图表应用程序的示例显示了颜色如何基于行(调整列别名以匹配我的屏幕截图)
select a.product_name,
b.quantity,
b.customer,
-- This is the column you're looking for
case when b.quantity > 50 then 'gold'
when b.quantity <= 30 then 'red'
when b.quantity > 30 then 'green'
else 'blue'
end as colour
from eba_demo_chart_products a, eba_demo_chart_orders b
where a.product_id = b.product_id
and customer = 'Store A'
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4588 次 |
| 最近记录: |