superset icon indicating copy to clipboard operation
superset copied to clipboard

How to create a scatter plot ?

Open pauliuxasz opened this issue 7 years ago • 13 comments

I've tried to search for an answer but could not find it anywhere.

Just wondering whats the procedure to create a basic scatter plot and maybe adding some lines (something similar to unity plot) ?

I've noticed there is a deck.gl scatter chart option but it does require to provide a map for it ? or am I wrong ?

Apologies if this has been answered before but would really appreciate any help on this.

Thanks!

pauliuxasz avatar Apr 10 '19 10:04 pauliuxasz

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. For admin, please label this issue .pinned to prevent stale bot from closing the issue.

stale[bot] avatar Jun 09 '19 11:06 stale[bot]

I second the emotion. Would be great to see basic scatter plot in there or some clear workaround using existing charts.

john-curry871 avatar Aug 15 '20 16:08 john-curry871

I think it's very good (and kinda necessary IMHO) to add an explicit scatter plot type too.
BTW, you can use the bubble chart with fixed bubble size (e.g., 1) as a workaround @john-curry871 @pauliuxasz

sazary avatar Feb 26 '21 20:02 sazary

+1

pundirg avatar May 09 '21 16:05 pundirg

+1 this is vital for common data science workflows

altosaar avatar May 11 '21 15:05 altosaar

Bump

benrii22 avatar Jul 14 '21 13:07 benrii22

You can use the "Bubble Chart" type, which looks like this:

image

intgr avatar Oct 12 '21 07:10 intgr

Bubble charts are good I don't feel it's a substitute for a stand-alone scatter plot. The bubble chart requires a discrete grouping variable and the x & y variables need to be aggregated (SUM, AVG, MIN, etc.). It would be nice to visualize the relationship between 2 variables without having to aggregate by a 3rd grouping variable.

aaskary avatar Oct 20 '21 20:10 aaskary

I agree. This is a standard feature in matplotlib seaborn etc.

altosaar avatar Oct 21 '21 13:10 altosaar

Any updates on this feature?

arojas314 avatar Oct 31 '22 15:10 arojas314

@arojas Steps that worked for me:

  1. Create a graph of type bubble chart
  2. Set bubble size to a static value
  3. Set max bubble size to the size you want the "bubbles"

Now all the points will be the same size (pics attached)

Screen Shot 2022-11-29 at 4 45 49 AM

mtsadler avatar Nov 29 '22 10:11 mtsadler

@mtsadler Thanks for sharing your solution. Any ideas to fix the issues that @aaskary mentioned about aggregated x&y dimentions?

newpoo avatar Dec 12 '22 03:12 newpoo

According to https://github.com/apache/superset/issues/5570 Superset made some unfortunate architectural decisions early on which make aggregations required in the charting and really hard to change.

reuben avatar Feb 27 '25 13:02 reuben