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

Better support for dates in the raster mark

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
d3

調査の方向性

src/marks/raster.js の InterpolateNone から始め、月次日付の例についてリンク先の Observable notebook を確認してください。提案されている丸め動作を、x と y の個別の制御、または時間の自動処理の必要性と比較してください。選択した動作が仕様として定義され、月次日付が目に見えるバンディングなしでレンダリングされれば完了です。

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

説明

enhancement

The naive implementation does not work because it has banding issues due to quantization on the date axis.

In the example below we have monthly data. Even with the correct width (corresponding to the number of different months), some months are rounded down to the pixel on their left hand side. This happens because the rounding in InterpolateNone is made by flooring the date divided by the average length of a month. (And months expressed in milliseconds are not uniform.)

Image

An easy way to fix this would be to allow changing the interpolator to use Math.round instead of Math.floor:

Image

We could call this interpolator: "round". However we might want more control on x vs y, so maybe we need more options. It would also be nice to auto-apply rounding when the dimension is temporal?

Notebook exploration: https://observablehq.com/@observablehq/plot-raster-dates-2351

主要言語
HTML
スター
5.4k
フォーク
246
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

observablehq/plot のほかの issue

observablehq/plot の issue をすべて見る

似ている issue

Data Visualization の issue をもっと見る

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

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