Add pathMonth for Calendar View to D3

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

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

評価

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

調査の方向性

The issue proposes adding the calendar-view pathMonth snippet from the linked Observable example to d3-shape or a separate D3 package. First, read the example and the d3-shape package structure to assess where this functionality belongs; the issue leaves that design choice open. Done means a package or project decision is made and the calendar month path is available in the chosen place.

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

説明

This little snippet appears in calendar view visualizations, but I don't believe it's part of D3 itself.

function pathMonth(t) {
  const n = weekday === "weekday" ? 5 : 7;
  const d = Math.max(0, Math.min(n, countDay(t.getUTCDay())));
  const w = timeWeek.count(d3.utcYear(t), t);
  return `${d === 0 ? `M${w * cellSize},0`
      : d === n ? `M${(w + 1) * cellSize},0`
      : `M${(w + 1) * cellSize},0V${d * cellSize}H${w * cellSize}`}V${n * cellSize}`;
}

(from https://observablehq.com/@d3/calendar-view)

Might it make sense to add this to d3-shape? Or maybe as a separate D3 package?

主要言語
JavaScript
スター
2.5k
フォーク
307
平均マージ
4時間 16分
マージ済み PR(30日)
1

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

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

d3/d3-shape のほかの issue

d3/d3-shape の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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