plotly / plotly/react-plotly.js
How can I hide traces from multiple charts at once?
Nessuno ha ancora preso questa issue.
- Lingua principale
- JavaScript
- Stelle
- 1.1k
- Fork
- 138
- Merge medio
- 3g 2h
- PR unite (30g)
- 4
Descrizione
I know that I can set the visibility of the trace on the chart by the visible property but this only affects the chart that I clicked on. On a page with multiple charts using similarly named traces, how can I toggle the visibility of all the similarly named traces at the same time?
Here was my attempt but this didn't have any affect and only toggled the chart I clicked.
let updatedChartingData = [...this.state.chartingData];
for (let chart of updatedData) {
for (let i = 0; i < chart.tickerEntities.length; i++) {
let trace = chart.tickerEntities[i];
if (trace.name === trace_name) {
if (!trace.visible) {
trace.visible = "legendonly";
}
else if ((typeof trace.visible) === "string") {
trace.visible = true;
}
else {
trace.visible = "legendonly";
}
}
}
}
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Non sono identificati né un file del repository né un test. Inizia tracciando come chartingData e la proprietà visible di ogni trace vengono passati ai grafici React; per considerare il lavoro completato servirebbe un modo chiaro e supportato per sincronizzare la visibilità delle trace con nomi simili tra i grafici.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, react
- Ambito
- data-visualization, frontend
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100