[BUG]: `contour.showlegend` default differs from actual behavior

オープン
#8,111 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 2 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
55/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
javascript

調査の方向性

The mismatch is set in src/traces/contour/style_defaults.js, lines 20-29, where showlegend is forced to false when coloring is not 'none'. Compare that with the documented default in the contour reference. Done means the documented default and the real behavior agree, which may mean editing the docs or the default, so confirm the intended direction with maintainers first. Check the existing contour tests before changing anything.

索引モデルが issue の本文から書いたものです。

説明

documentation P2 size: 1
Description

The contour.showlegend reference documents the default as true.

However, for contours with coloring !== 'none', the actual default is explicitly set to false in:
https://github.com/plotly/plotly.js/blob/4862f6271046024e58cd25bfa771e81ffe2fdce6/src/traces/contour/style_defaults.js#L20-L29

So the documented default does not match the actual behavior. Or this is confusing.

Screenshot
Image
Codepen

https://codepen.io/Lexachoc/pen/WbpdLjQ

主要言語
JavaScript
スター
18.4k
フォーク
2.1k
平均マージ
1日 5時間
マージ済み PR(30日)
12

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

plotly/plotly.js のほかの issue

plotly/plotly.js の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。