add new "proportional" tick mode
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- JavaScript
- Sterne
- 18.3k
- Forks
- 2k
- Ø Merge
- 2 T. 12 Std.
- Gemergte PRs (30 T.)
- 28
Beschreibung
What
Add a new tick mode:
# Usage:
xaxis: {
tickmode: 'proportional',
tickvals: [0, .5, 1],
}
Effect:
Plotly will make ticks propotional to the range: So if the x range is [50, 150], the tick marks will appear at 50, 100, and 150. If the xrange is [-0.5, 1.5], the tick marks will appear at -0.5, 0.5, and 1.5.
Why
Auto tick formatting is usually ugly (for any value ntick), and the other modes aren't responsive to user zooms.
Workaround: Using python w/ jlab, but I can calculate ticks manually on range changes and during rendering, and then use array mode, but it is clunky, and requires my users to have the plotly installed in their kernel and on jlab server. My proposal doesn't seem that different than modifying auto behavior, so I'll take a shot.
Who am I
Working on analysis software for geologists who design wells.
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Im Issue wird keine Quelldatei und kein Test genannt. Beginne damit, die bestehende Behandlung von tick-mode und die zugehörigen Tests zu finden, und vergleiche dann die angeforderten proportionalen Beispiele mit dem aktuellen Verhalten von auto und array. Fertig ist die Umsetzung, wenn der neue Modus auf Bereichsänderungen reagiert und Ticks bei den angeforderten proportionalen Werten erzeugt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript
- Bereich
- data-visualization
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100