plotly / plotly/plotly.js

add the 'area' property to 'scalemode' in the violin

Open
#7,163 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

feature P3
Dominant language
JavaScript
Stars
18.3k
Forks
2k
Avg merge
2d 12h
Merged PRs (30d)
28

Description

Hello everyone, I have a question about the violin, why is there only two modes (count and width) in the scalemode in the plotly.js and there is no 'area', is the purpose of area achieved by other parameter control? If so, can you give an example? If not, I'd like to ask if it will be added in the future.
Here is the violin area pattern implemented by Seaborn.
violin_area

Thank you

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the violin trace's existing scalemode options, count and width, and compare them with the Seaborn area pattern shown in the issue. Define the expected behavior for a new area mode, then add the option and coverage demonstrating that the violin area is scaled as intended.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.