plotly / plotly/plotly.js

Allow adding class to shapes

Open
#7,370 2 comments 0 reactions 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

I would like to be able to assign specific behaviour to shapes. For example making specific shapes editbale. I know there's an editable field in shapes[] but that is a bit clunky (the user has to select the shape and then move it which doesn't always work very well).

I would like to be able assign a class name to shapes such that I can set specific css properties per shape. Is there a reason why a class/id can't be assigned to shapes? Could this be something that could be added?

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 tracing how shapes[] are rendered and how the existing editable field affects shape interaction. Define the intended class/id behavior and CSS scope for each shape, then verify that shape-specific styling and editing work without breaking existing shapes behavior.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.