zoukankan      html  css  js  c++  java
  • PB 饼状图制作过程

    1,图形DataWindow数据源(Data)设置。Category设置为数据分类字段,Value设置为数据值字段。其中Series不设置任何信息保持为空。

    2、图形DataWindow显示信息(Text)设置。Legend设置为数据分类名称,Pie Grahp Lables设置为数据比例信息。

    实际运用举例:某电厂的设备缺陷统计信息。数据分类字段为 Special_code  数据值为 汽机,锅炉,电工,热工,化学,烟气。数据值字段为 Special_num.

      

    3、Legend 的Display Expression 设置为:  case(  category when '01' then '汽机' when '02' then '锅炉' when '03' then '电气'  when '04' then '热工'  when '05' then '化学' when '06' then '烟气' else '未定义')来控制显示左侧的显示信息。

    4、Pie Graph Labels 设置 饼状图显示的百分比信息。Display Expression设置为 :if(seriescount > 1, series ,string(percentofseries,"0.00%") +  case(  category when '01' then '汽机' when '02' then '锅炉' when '03' then '电气'  when '04' then '热工'  when '05' then '化学' when '06' then '烟气' else '未定义'))      。其中if(seriescount > 1, series ,string(percentofseries,"0.00%") 为默认信息if(seriescount > 1, series ,string(percentofseries,"0.00%") +  case(  category when '01' then '汽机' when '02' then '锅炉' when '03' then '电气'  when '04' then '热工'  when '05' then '化学' when '06' then '烟气' else '未定义'))    为说明信息,是手工加入的。饼状图信息基本设置完毕。

  • 相关阅读:
    Deformable 可变形的DETR
    https://start.aliyun.com/
    english note 111
    HTTP/2.0与HTTP/1.1协议区别
    什么是长连接
    使用pycharm
    Java使用率大幅度下降,Python使用率逐渐攀升
    SELECT command denied to user 'root'@'localhost' for table 'user'
    mysql 问题阅后归档
    响应式编程
  • 原文地址:https://www.cnblogs.com/honliv/p/2042873.html
Copyright © 2011-2022 走看看