New to Observable Plot, please help formatting data #2168
Unanswered
LyraLupus03
asked this question in
Q&A
Replies: 1 comment
-
What you can do with Observable Plot is to use a dot mark, where x would be the livestock type, y the predator, and the radius would be the number of livestock killed:
Then you could build up this chart by adding various options to make it more readable:
Another approach is to use color to encode the quantity; you can then use the cell mark like so: ![]()
If your x or y axes are continuous, you can use binning instead; see the “two-dimensional heatmap” example in https://observablehq.com/plot/transforms/bin. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to make a bivariate histogram graphing livestock type vs predator type for the number of livestock killed. I have no idea what I'm doing since I know nothing about coding and this is my first time using observable, but this is an assignment for a class so I have to learn. It seems no matter how I format my data I can't get it onto the plot. I am basing my plot off of an example by observable: [https://observablehq.com/@observablehq/plot-grouped-bar-chart?intent=fork] and here is my notebook: [https://observablehq.com/d/258fff5cd0273f02]
Beta Was this translation helpful? Give feedback.
All reactions