superset icon indicating copy to clipboard operation
superset copied to clipboard

Question: How do bullet charts work in superset?

Open jnawras opened this issue 9 years ago • 5 comments

1- Where does the maximum value come from (shown in the label once hovering over the gray background rectangle)? Seems always to be some 110% the "current value".

2- How can I set that value?

3- How can I set the marker values dynamically (not hard-coded) based on an SQL calculation?

Superset version

0.17.2

jnawras avatar Apr 05 '17 08:04 jnawras

For 1 and 2 you can use the ranges and labels to set the values and the name you want to associate with them.

I'd be interested in the answer to 3 as well.

kmagida110 avatar Apr 10 '17 19:04 kmagida110

In its current state only the blue line can be associated with a real, not-hard-coded value

mistercrunch avatar Apr 11 '17 05:04 mistercrunch

Thanks! I figured so after looking into the scripts. Do you think this could easily be implemented? It seems to me if so, this would require changes across multiple scripts to be well generalized.

Not sure where this issue fits under current labels. I got the answers I need for now, feel free to close it, or I'll do in awhile.

jnawras avatar Apr 11 '17 06:04 jnawras

For 1 and 2 you can use the ranges and labels to set the values and the name you want to associate with them.

I'd be interested in the answer to 3 as well.

Did we get answer for 3? I am trying to figure it out as well

swattamw avatar Mar 03 '20 21:03 swattamw

Looking for solution as well

phamthoidinhthien avatar Jul 13 '20 23:07 phamthoidinhthien