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 '未定义'))    为说明信息,是手工加入的。饼状图信息基本设置完毕。

  • 相关阅读:
    JS 日期加多少天,减多少天
    SQL 触发器
    SGU100
    连续子数组的最大和
    字符串的排列
    二叉搜索树与双向链表
    数组中出现次数超过一半的数字
    复杂链表的复制
    二叉树中和为某一值的路径
    二叉搜索树的后序遍历序列
  • 原文地址:https://www.cnblogs.com/honliv/p/2042873.html
Copyright © 2011-2022 走看看