chartjs / chartjs/Chart.js

Simple adapter for time axes

Open
#10,314 3 comments 1 reaction 0 assignees View on GitHub
type: enhancement
Dominant language
JavaScript
Stars
67.7k
Forks
11.9k
Avg merge
7h 39m
Merged PRs (30d)
5

Description

### Feature Proposal

Having rather simple use cases and reading these articles "Do you really need a date library?" I was wondering whether it wasn't possible to write an adapter for basic needs using Intl.DateTimeFormat only.

### Possible Implementation

[Here](https://github.com/mnlipp/jgrapes-webconsole/blob/master/org.jgrapes.webconsole.provider.chartjs/resources/org/jgrapes/webconsole/provider/chartjs/chart.js/adapters/chartjs-adapter-simple.js) is my code. It might serve as a starter for a default adapter that needs to be replaced with a date library based adapter only if more sophisticated parsing/formatting functions are required.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.