{"id":13702076,"url":"https://github.com/chartjs/chartjs-adapter-luxon","last_synced_at":"2025-08-02T11:34:38.650Z","repository":{"id":34247497,"uuid":"164328687","full_name":"chartjs/chartjs-adapter-luxon","owner":"chartjs","description":"Luxon adapter for Chart.js","archived":false,"fork":false,"pushed_at":"2023-02-02T21:07:41.000Z","size":365,"stargazers_count":35,"open_issues_count":4,"forks_count":22,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-07-26T01:54:15.969Z","etag":null,"topics":["adapter","chartjs","datetime","luxon"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chartjs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-01-06T17:14:52.000Z","updated_at":"2025-07-16T14:30:45.000Z","dependencies_parsed_at":"2023-02-18T00:31:47.920Z","dependency_job_id":null,"html_url":"https://github.com/chartjs/chartjs-adapter-luxon","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"purl":"pkg:github/chartjs/chartjs-adapter-luxon","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartjs%2Fchartjs-adapter-luxon","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartjs%2Fchartjs-adapter-luxon/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartjs%2Fchartjs-adapter-luxon/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartjs%2Fchartjs-adapter-luxon/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chartjs","download_url":"https://codeload.github.com/chartjs/chartjs-adapter-luxon/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chartjs%2Fchartjs-adapter-luxon/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268378980,"owners_count":24240912,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-02T02:00:12.353Z","response_time":74,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["adapter","chartjs","datetime","luxon"],"created_at":"2024-08-02T21:00:30.893Z","updated_at":"2025-08-02T11:34:38.574Z","avatar_url":"https://github.com/chartjs.png","language":"JavaScript","readme":"# chartjs-adapter-luxon\n\n[![release](https://img.shields.io/github/release/chartjs/chartjs-adapter-luxon.svg?style=flat-square\u0026maxAge=600)](https://github.com/chartjs/chartjs-adapter-luxon/releases/latest) [![travis](https://img.shields.io/travis/chartjs/chartjs-adapter-luxon.svg?style=flat-square\u0026maxAge=60)](https://travis-ci.org/chartjs/chartjs-adapter-luxon) [![awesome](https://awesome.re/badge-flat2.svg)](https://github.com/chartjs/awesome)\n\n## Overview\n\nThis adapter allows the use of Luxon with Chart.js. Luxon provides built-in support for time zones and internationalization.\n\nRequires [Chart.js](https://github.com/chartjs/Chart.js/releases) **2.8.0** or later and [Luxon](https://moment.github.io/luxon/) **1.0.0** or later.\n\n**Note:** once loaded, this adapter overrides the default date-adapter provided in Chart.js (as a side-effect).\n\n## Installation\n\n### npm\n\n```\nnpm install luxon chartjs-adapter-luxon --save\n```\n\n```javascript\nimport {Chart} from 'chart.js';\nimport 'chartjs-adapter-luxon';\n```\n\n### CDN\n\nBy default, `https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon` returns the latest (minified) version, however it's [highly recommended](https://www.jsdelivr.com/features) to always specify a version in order to avoid breaking changes. This can be achieved by appending `@{version}` to the URL:\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/chart.js@^3\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/luxon@^2\"\u003e\u003c/script\u003e\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@^1\"\u003e\u003c/script\u003e\n```\n\nRead more about jsDelivr versioning on their [website](http://www.jsdelivr.com/).\n\n## Configuration\n\nAny date adapter options in the chart configuration will be passed through to Luxon's factory functions.\n\nThe following table describes the supported options that these functions accept.\n\nNamespace: `options.scales[scaleId].adapters.date`\n\n| Name | Type | Default | Description\n| ---- | ---- | ------- | -----------\n| `locale` | `string` | `undefined` | Set a locale to use on the resulting `DateTime` instance. If not set, the adapter will use the [locale](https://www.chartjs.org/docs/latest/configuration/locale.html), defined at chart options level. By default, Luxon uses the system's locale. See [`Intl` locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#locale_identification_and_negotiation).\n| `numberingSystem` | `string` | `undefined` | Set the numbering system to set on the resulting `DateTime` instance. See [Luxon](https://moment.github.io/luxon/#/intl?id=numberingsystem) and [`Intl` numberingSystem](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax) documentation.\n| `outputCalendar` | `string` | `undefined` | Set the output calendar to set on the resulting `DateTime` instance. See [Luxon](https://moment.github.io/luxon/#/calendars?id=output-calendars) and [`Intl` calendar](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax) documentation.\n| `setZone` | `boolean` | `undefined` | Override the zone with a zone specified in the string itself, if it specifies one. By default, Luxon uses `options.setZone=false`.\n| `zone` | `string`\\|`Zone` | `undefined` | Set the zone to place the `DateTime` into. By default, Luxon uses `options.zone='local'`. See [Luxon](https://moment.github.io/luxon/#/zones?id=luxon-works-with-time-zones) and [`Intl` timeZone](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat#syntax) documentation.\n\nRead the [Chart.js documention](https://www.chartjs.org/docs/latest) for other possible date/time related options. For example, the time scale [`time.*` options](https://www.chartjs.org/docs/latest/axes/cartesian/time.html#configuration-options) can be overridden using the [Luxon formats](https://moment.github.io/luxon/#/formatting).\n\n## Development\n\nYou first need to install node dependencies (requires [Node.js](https://nodejs.org/)):\n\n```\n\u003e npm install\n```\n\nThe following commands will then be available from the repository root:\n\n```\n\u003e npm run build         // build dist files\n\u003e npm test              // perfom code testing\n\u003e npm run lint          // perform code linting\n```\n\n## License\n\n`chartjs-adapter-luxon` is available under the [MIT license](LICENSE.md).\n","funding_links":[],"categories":["Adapters"],"sub_categories":["Data Sources"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchartjs%2Fchartjs-adapter-luxon","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchartjs%2Fchartjs-adapter-luxon","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchartjs%2Fchartjs-adapter-luxon/lists"}