plotly / plotly/plotly.js

Minor ticks don't work with tickformat %Y and ticklabelmode period

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

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

bug cs P2
主要言語
JavaScript
スター
18.3k
フォーク
2k
平均マージ
2日 12時間
マージ済み PR(30日)
28

説明

Minor ticks don't work as expected when the following three axis properties are combined:

  xaxis: {
    tickformat: '%Y',
    ticklabelmode: 'period',
    minor: {
      ticks: 'inside'
    }
  }

The minor ticks don't show up. Changing the tickformat to anything below the year frequency (e.g. %b %Y) lets the minor ticks appear. Removing the ticklabelmode also makes the minor ticks appear.

Here is a codepen that demonstrates the issue:
https://codepen.io/Djeramon/pen/vYQzPOa
Expected behaviour: Minor ticks should appear.

It is unclear, why the minor ticks shouldn't work with a yearly frequency on the major ticks.

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

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

調査の方向性

リンクされたCodePenの再現から始め、yearly tickformat、ticklabelmode 'period'、minor ticksの相互作用を確認します。軸のtick生成とラベルモードのエントリポイントを追跡し、minor ticksが省略される理由を特定します。3つすべてのプロパティを有効にした状態でminor ticksが表示され、既存のケースが引き続き動作すれば完了です。

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

評価

技術スタック
javascript
領域
data-visualization
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

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

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