Project

General

Profile

ui_component #989

Updated by UserName LastName over 1 year ago

business_list: 
 - summary 
 class_list: order-2 order-1 
 component: h-vega-v1 
 component_list: 
 - card-testcase 
 display_name: '' 
 filter: data.data.testcase 
 img: '' 
 link: '' 
 meta: 
   transform: 
   - aggregate: 
       - op: count 
         as: count encoding: 
     groupby: 
       tooltip: 
     - field: case_priority 
   - window: 
       title: 优先级 
       type: nominal 
     - op: sum 
         field: count 
         as: total 
     frame: 
       - null title: 总数 
       - null 
   - calculate: 'format(datum.count / datum.total * 100, ''.2f'') + ''%''' type: quantitative 
     as: percentage 
   mark: arc 
   encoding: 
     theta: x: 
       field: count total 
       type: quantitative 
       stack: true title: 总数 
     color: y: 
       field: case_priority 
       type: nominal 
       title: 优先级 
       scale: 
         range: 
           
     color: {"field":"case_priority","title":"优先级","scale": {"range": ["#5DC9BC", "#EE8232", "#F7CE46","#2F52EB","#CC9DF0"]}} 
   mark: bar 
   title: 测试用例统计 
   transform: 
     - '#5DC9BC' 
           - '#EE8232' 
           - '#F7CE46' 
           - '#2F52EB' 
           - '#CC9DF0' 
     tooltip: aggregate: 
       - as: total 
         field: case_priority '*' 
         type: nominal 
         title: 优先级 op: count 
       groupby: 
       - field: percentage 
         type: nominal 
         title: 百分比 
   view: 
     stroke: null 
   title: 测试用例优先级分布统计 case_priority 
 method_list: 
 - index 
 name: testcase_arc_distribution 
 project_list: [] 
 role_list: [] 
 scope_list: [] 
 status_list: [] 
 tracker_list: [] 
 type: form 
 url: '' 

Back