https://github.com/notryanb/highcharts_date_range_grouping
A Highcharts plugin to group datasets by date ranges and aggregate results (ie. weekly, monthly, daily)
https://github.com/notryanb/highcharts_date_range_grouping
Last synced: 9 months ago
JSON representation
A Highcharts plugin to group datasets by date ranges and aggregate results (ie. weekly, monthly, daily)
- Host: GitHub
- URL: https://github.com/notryanb/highcharts_date_range_grouping
- Owner: notryanb
- License: mit
- Created: 2017-03-08T18:34:55.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-17T19:40:29.000Z (about 9 years ago)
- Last Synced: 2025-04-06T07:37:14.625Z (about 1 year ago)
- Language: JavaScript
- Size: 192 KB
- Stars: 6
- Watchers: 1
- Forks: 1
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Highcharts Date Range Grouping

This plugin is meant to help group data over a time domain. The raw dataset should be datapoints
broken down by day in order for the plugin to make weekly and monthly sums.
## Basic Usage
Chart Options: `dateRangeGrouping: true`
Chart Options
```
dateRangeGrouping: {
dayFormat: { month: 'numeric', day: 'numeric', year: 'numeric' },
weekFormat: { month: 'numeric', day: 'numeric', year: 'numeric' },
monthFormat: { month: 'numeric', year: 'numeric' }
}
```
[toLocaleDateString](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleDateString) configurations are used to format the date strings in this plugin.
## Demos
- [Defaults](https://jsfiddle.net/9kyw8uky/5/)
- [Date Formatting Options](https://jsfiddle.net/9kyw8uky/6/)