Years are displayed as “2,022” (formatted as numbers rather than years).

Đang mở
#519 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 2 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
58/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
frontend

Hướng nghiên cứu

Start in src/views/ViewUtils.tsx at formatCellValue, then trace how src/app/dfSlice.tsx obtains the field semantic type through fetchFieldSemanticType. Check how year values are formatted when that type is delayed or unavailable. Done when years display without a thousands separator in that case, while ordinary numbers remain formatted as numbers.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

Possible cause: Possibly formatCellValue in src/views/ViewUtils.tsx. It only drops the thousands separator when the column’s semantic type is year. That type comes from a model call (fetchFieldSemanticType in src/app/dfSlice.tsx), so if that call is slow or fails, years are formatted as plain numbers.

Ngôn ngữ chính
Python
Star
17.7k
Fork
1.7k
Merge trung bình
4 ngày 1 giờ
Pull request đã merge (30 ngày)
8

Chuẩn bị môi trường

Mở trong Codespaces

Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/data-formulator

Tất cả issue của microsoft/data-formulator

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.