plotly / plotly/plotly.js

[FEATURE]: Allow annotations for scatterternary to reference ternary axes (a,b,c) instead of (x,y)

未關閉
#7,971 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

enhancement feature P2 size: 3
主要語言
JavaScript
星號
18.3k
分支
2k
平均合併
2 天 12 小時
30 天內合併 PR
28

描述

Hi,

Description

For scatterternary plots, it would great if we could specify the annotation positions relative to the a,b, c axes instead of x and y.

Why should this feature be added?

Currently, we have to convert the annotations a,b, c positions into (arbitrary for this plot type) cartesian coordinate space; it would be easier (and be more logical) to be able to use a,b, c in the annotation declaration, e.g:

annotations: [
  {
    //x: 0.1,
    //y: 0.135,
    a: 10,
    b: 70,
    c: 20,
    text: "my text"
  }
]

Many thanks

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先定位 plotly.js 中 scatterternary 的 annotation 處理以及 annotation 宣告路徑。檢查 annotation 位置目前如何使用 x 和 y,然後判定對於此圖表類型,應如何解讀 a、b 和 c 座標。完成的標準是 annotation 可以接受三元軸位置而不需要進行笛卡兒轉換,並且涵蓋所要求的範例。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
data-visualization
Issue 類型
功能
難度
4/5
預估耗時
3-5 天
活躍度
冷清
描述清晰度
基本清楚
新手友好度
48/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。