Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Possibility to get y position of a point/value at an index?

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

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

評価

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

調査の方向性

まず、折れ線グラフが points array をどのように使用し、レンダリングされた線をどのように配置しているかを追跡し、次に TopAxisLabel と BottomAxisLabel がグラフのフレームにどのような影響を与えるかを調べます。コンポーネントが各ポイントの y 位置を公開すべきか、またそれらのラベルが存在しない場合に見かけ上の padding がどのように動作すべきかを定義します。issue ではテストもファイルも指定されていません。

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

説明

With a points array as usual, (how) is it possible to get the y position of a point (for example points[1]) on the linegraph?
I'm trying to draw a line on max and min similar to the Top and BottomAxisLabels examples, but they are (obviously?) just on the top and bottom of the graph "frame".

image

  • And something additional; there seems to be some padding visible however as far as I understood, there should be no padding if Top/BottomAxisLabel is not set?
const points = [
    {
       value: 100,
       date: new Date('2020-01-01')
    },
    {
       value: 200,
       date: new Date('2020-01-01')
    },
    {
       value: 300,
       date: new Date('2020-01-01')
    },
    ...
 ]
主要言語
TypeScript
スター
2.6k
フォーク
137
平均マージ
18分
マージ済み PR(30日)
5

環境構築

はじめの一歩

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

margelo/react-native-graph のほかの issue

margelo/react-native-graph の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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