plotly / plotly/plotly.js

display only category label on axis for multicategory plots

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

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

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

説明

I would like to display only the category, and not the specific tick labels on the axis. For example, in this example https://codepen.io/plotly/pen/bOByWR I would like to only display 'SF Zoo' and 'LA Zoo'. I've tried several hacks such as setting tick labels to empty string, but in my case the plot still leaves room for the tick labels and it looks weird. See what I mean:
image

Is there a way to accomplish this? I think I might have to use the idea of subcategory axis instead.

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

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

はじめの一歩

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

調査の方向性

まず、リンクされたCodePenのマルチカテゴリープロットを再現し、提供されたスクリーンショットと比較します。Plotly.jsがカテゴリーラベルと目盛りラベルをどのようにレンダリングするかを調査し、そのうえで「SF Zoo」と「LA Zoo」だけを表示することで、特定の目盛りラベル用に確保されたスペースも削除できるかどうかを判断します。未使用の目盛りラベル用スペースなしでカテゴリーラベルが読みやすく表示されれば完了です。

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

評価

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

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

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