xiaohanyu commented on issue #4394: Implement the column config and row config 
in pivot table
URL: 
https://github.com/apache/incubator-superset/pull/4394#issuecomment-365160586
 
 
   Some test cases 
   
   ## column configuration:
   
   - Set all cell's background color to red (by selecting only the metric)
   
   
![image](https://user-images.githubusercontent.com/1164623/36135855-86e5d26c-10c8-11e8-82cf-d1ed50c57bda.png)
   
   - Set one column's background color to red (by selecting metric and columns)
   
   
![image](https://user-images.githubusercontent.com/1164623/36135364-aa008d94-10c5-11e8-8f40-6cf3724ef427.png)
   
   - Set all cell's background color to blue and set different color for 
different columns (first by selecting metric and set background color, then set 
color for different columns under metrics)
   
   
![image](https://user-images.githubusercontent.com/1164623/36135423-eeb4349a-10c5-11e8-893d-950b45771b66.png)
   
   - Text alignment for specific column (by setting text align for metric or 
column)
   
   
![image](https://user-images.githubusercontent.com/1164623/36135549-ca807cd6-10c6-11e8-883e-f665089c3c89.png)
   
   - Specific formatting for specific column:
   
   
![image](https://user-images.githubusercontent.com/1164623/36135561-e7aecc40-10c6-11e8-95c6-42694d234283.png)
   
   ## column configuration with conditional formatting
   
   - Set all cells with value greater than 20000 to red color background and 
bold font:
   
   
![image](https://user-images.githubusercontent.com/1164623/36136053-87c979ee-10c9-11e8-906e-e1f3deb2fd6e.png)
   
   - Set Set all cells of a specific column with value greater than 20000 to 
yellow color background:
   
   
![image](https://user-images.githubusercontent.com/1164623/36136149-f40f7bf8-10c9-11e8-810e-28b40bda85af.png)
   
   - Together with background settings from above, we can mark cells whose 
value is greater than 20000 with yellow color, while other cells with green 
color by setting background color for the whole column.
   
   
![image](https://user-images.githubusercontent.com/1164623/36136162-092214a6-10ca-11e8-8753-fb9f3bc4a0cb.png)
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to