plotly / plotly/react-plotly.js
How can I hide traces from multiple charts at once?
オープン
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 1.1k
- フォーク
- 138
- 平均マージ
- 3日 2時間
- マージ済み PR(30日)
- 4
説明
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";
}
}
}
}
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
リポジトリのファイルもテストも特定されていません。まず、chartingData と各 trace の visible プロパティが React チャートにどのように渡されるかを追跡します。完了とするには、名前が類似する trace の表示状態をチャート間で同期する、明確でサポートされた方法が必要です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, react
- 領域
- data-visualization, frontend
- issue の種類
- 機能追加
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100