-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
A few more ways to configure marker.size
scales
#2318
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
.. to all scatter-like traces.
Hello, The biggest difference is that sizeref is NOT used. Also I'm not too sure how the area mode is meant to be used. Note I wasn't too sure when I started and I had modified the dist/plot-schema.json to indicate the new fields I added (sizedatamin etc). It's not quite up to date. |
Hi @greg9504 First off, sorry for the wait. It's been a pretty crazy couple months in plotly.js land feature-wise. Thanks for sharing your commit. It definitely makes it easier to understand what you're going after. Now regarding the discrepancies between your commit and this PR:
A while back, we (i.e me and. @alexcjohnson ) chose to ignore negative values in I'm not oppose to adding support for negative values in
Personally, I thought One more thing I noticed: We can do better than Thanks for your help and patience. We're looking forward to having this feature part of plotly.js! |
Hello, |
Closing (due to numerous merge conflicts). Discussion moved to -> #3129 |
This PR adds a few attributes to the
marker
container for scatter-like traces.These new attributes are:
marker.sizemax
: Sets the maximum size (in px) of the rendered marker points. Analogous to the existingmarker.sizemax
.marker.sizedatamin
: Sets the minimummarker.size
value to be scaled. Values smaller thansizedatamin
are displayed withsizemin
.marker.sizedatamax
: Sets the maximummarker.size
value to be scaled. Values greater thansizedatamin
are displayed withsizemax
.and
marker.sizemode
has two new possible values:'log-diameter'
: the base10 log of themarker.size
data is proportional to marker points' diameter .'log-area'
, the base10 log of themarker.size
data is proportional to marker points' area.Alternatively, we could add a new attribute (named e.g.
marker.sizescaletype: 'linear' || 'log'
), but while writing the description I thought that a looping log-scale settings intosizemode
would be clearer for users.cc @alexcjohnson