Oracle APEX - 自定义条形图

问题描述 投票:0回答:1

是否可以将条形图设为双y轴?

我有一个条形图,有4个条形图,由查询生成,返回4行。

我有没有办法让每个条形成不同的颜色,而在右侧,而不是系列名称,指定颜色以及每个条形的标签?

oracle-apex
1个回答
3
投票

单击其中一个图表系列,然后查找“分配给Y轴”属性

enter image description here

而不是“颜色”属性旁边的方式。您可以使用using&COLUMN_ALIAS替换您的颜色from your SQL。句法。

链接表单中的示例图表应用程序示例显示了颜色如何基于行(调整列别名以匹配我的屏幕截图)

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'
© www.soinside.com 2019 - 2024. All rights reserved.