plotly / plotly/plotly.js

Disable Diagonal Selection on cartesian zoombox drag

Open
#3,923 6 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

Hi Team Plotly,

I would like to enable the horizontal and vertical axis selection on bar/line charts, but I want to disable the diagonal selection – i.e. I don’t want to user to simultaneously select both axis, but only one at a time.

I have tried different solutions, but I could not get the desired effect. For example, setting fixedrange:true, disables either vertical or horizontal selection. But, I want to disable only diagonal selection, and keep both horizontal and vertical selections enabled.

Is it possible to have this feature for diagonal selection, like diagonalFixedRange:true? or have a flag to disable just the diagonal selection?

I'm using this library in ReactJS, the Plotly.js update will also ReactJS package?

Thank you very much for you help and the wonderful library 😊.

2019-05-30 13_26_42-Avatera Medical Center

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 reproducing the issue with bar and line charts using cartesian zoombox drag, comparing horizontal, vertical, and diagonal selections. Review how fixedrange currently affects axis selection and determine the existing entry point for zoombox selection. Done means horizontal and vertical selection remain available while simultaneous diagonal selection can be disabled, with the behavior usable through the ReactJS package.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
data-visualization, frontend
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.