superset icon indicating copy to clipboard operation
superset copied to clipboard

Add ability to color cells on Pivot Tables

Open jfeng15 opened this issue 9 years ago • 41 comments

A couple of users have requested the ability to color cells on Pivot Tables, either manually or based on certain rules. This issue is to track the addition of that feature.

jfeng15 avatar Sep 06 '17 00:09 jfeng15

Hi, all,

Actually, we have implement similar features for pivot table and plain table, in our own branch.

Some screenshot here:

The final table style:

image

Configure table column style based on some rules (like if the value is greater than 100%, then set the cell color to red)

image

Configure table row style based on some rules (like if the row contains some keyword, then highlight the whole row):

image

I was wondering if anybody have interest in this feature. We can consider to contribute back to upstream.

xiaohanyu avatar Sep 07 '17 07:09 xiaohanyu

Actually, we have implement similar features for pivot table and plain table, in our own branch.

good features,i also needit.tks!! which branch can try this feature

太棒了,你做的这些新特性在那个分支里呢?多谢啦

gangh avatar Sep 11 '17 09:09 gangh

Hi, @gangh

Right now these feature is hosted on our own internal private codebase, and we're considering to contribute back this feature to upstream in one or two months.

I wrote our work here because I was wondering how many people are interested in this kind of feature.

xiaohanyu avatar Sep 11 '17 09:09 xiaohanyu

@xiaohanyu Love the simple implementation! I am interested as well.

markrey avatar Sep 27 '17 22:09 markrey

upstream it!

mistercrunch avatar Sep 28 '17 05:09 mistercrunch

Has this feature been implemented in superset ? .

shyam2794 avatar Dec 22 '17 09:12 shyam2794

@shyam2794 Right now, no. We're considering contribute our patch to upstream, maybe start from Next January.

And to give you a sneak:

image

xiaohanyu avatar Dec 22 '17 10:12 xiaohanyu

@xiaohanyu This looks cool . Thanks for the reply . We are in very much need of this feature . Expecting it to be in superset by Jan.

shyam2794 avatar Dec 26 '17 10:12 shyam2794

@shyam2794 we will start to do this from Jan, so be patient!

xiaohanyu avatar Dec 27 '17 02:12 xiaohanyu

is it done?

kartikshanbhag3333 avatar Jan 15 '18 19:01 kartikshanbhag3333

@kartikshanbhag3333 we're working on it from this week. It should be PRed by the end of this month.

xiaohanyu avatar Jan 16 '18 02:01 xiaohanyu

Hi guys, currently we are working on this to make it more flexible and more complete, with @xiaohanyu , there are two different design, which one do you think better? image image

@mistercrunch @graceguo-supercat @michellethomas @timifasubaa @shyam2794 @kartikshanbhag3333

ShirmineWang avatar Jan 25 '18 11:01 ShirmineWang

The First one looks very useful to me

kartikshanbhag3333 avatar Jan 27 '18 10:01 kartikshanbhag3333

@kartikshanbhag3333 oh really? we think the second one looks more aligned considering layout, while the first one looks a little messy about layout.

xiaohanyu avatar Jan 27 '18 13:01 xiaohanyu

@xiaohanyu @WangXueminGit 2nd one looks better.

markrey avatar Jan 29 '18 07:01 markrey

@xiaohanyu Yeah I missed some pointers from the 2nd one, 2nd one clearly makes sense..

kartikshanbhag3333 avatar Jan 29 '18 08:01 kartikshanbhag3333

@WangXueminGit The second one looks pretty neat .

shyam2794 avatar Feb 05 '18 13:02 shyam2794

We're almost done.

@WangXueminGit is really working quite hard on this feature and after internal code review, we'll push this to upstream soon.

Here's a small demo of our work:

ezgif com-resize

xiaohanyu avatar Feb 07 '18 11:02 xiaohanyu

Hi guys, I made a pr for this issue. Check the pull request #4394 Thanks!!

ShirmineWang avatar Feb 09 '18 09:02 ShirmineWang

HI, all, we have updated lots of screenshots in https://github.com/apache/incubator-superset/pull/4394, please vote for us, thanks.

xiaohanyu avatar Feb 13 '18 06:02 xiaohanyu