]>
git.ipfire.org Git - thirdparty/Chart.js.git/log
Ian Ker-Seymer [Fri, 2 Sep 2016 20:39:25 +0000 (16:39 -0400)]
Suport minUnit for time scale
When dealing with time-delineated datasets, often we have data for known
intervals of time. For example, we may have a dataset which represents number
of purchases per day:
```json
{
labels: ['2016-01-01', '2016-01-02', '2016-01-03']
datasets: [
{
data: [12, 87, 42]
}
],
'...': '...'
}
```
In this case, Chart.js will attempt to figure out the best interval to display
the data, and could pick `hours` as the unit. However, in this case, we would
prefer to just use the `days` interval since our data's granularity can not be
represented well with `hours`.
To remedy this, this commit adds the `minUnit` option which allows
users to (optionally) specify what the minimum unit they would like
to use.
courchef [Sat, 3 Sep 2016 16:06:09 +0000 (12:06 -0400)]
Error possible when using the plugin Chart.Zoom.js used with time scale (#3194)
Zooming in can cause the params `datasetIndex` and `index` to be null in method `getLabelMoment`. This happens when no ticks are visible on scale. It also throws an error and the chart becomes broken.
Simon Brunel [Sat, 3 Sep 2016 16:02:38 +0000 (18:02 +0200)]
Merge pull request #3223 from simonbrunel/bower_release
Deploy dist files in release tags (bower support)
Evert Timberg [Fri, 2 Sep 2016 22:46:16 +0000 (18:46 -0400)]
Merge pull request #3242 from Pikamander2/new_branch
Fix zero border width not working (issue #3241)
Ekaterina Dontsova [Fri, 2 Sep 2016 22:26:03 +0000 (01:26 +0300)]
Fix #3022 Multi-lines label alignment (#3239)
Zach Panzarino [Thu, 1 Sep 2016 15:20:18 +0000 (15:20 +0000)]
Update link to slack automation in Contributing.md
Pikamander2 [Thu, 1 Sep 2016 06:28:10 +0000 (02:28 -0400)]
Fix zero border width not working (issue #3241)
Pikamander2 [Thu, 1 Sep 2016 06:18:42 +0000 (02:18 -0400)]
Fix zero border width not working (issue #3241)
Tanner Linsley [Tue, 30 Aug 2016 15:04:16 +0000 (09:04 -0600)]
Update README.md
Simon Brunel [Sun, 28 Aug 2016 16:25:15 +0000 (18:25 +0200)]
Remove deprecated gulp tasks and dependencies
Simon Brunel [Sun, 28 Aug 2016 15:34:22 +0000 (17:34 +0200)]
Describe the release process
Simon Brunel [Sun, 28 Aug 2016 13:53:34 +0000 (15:53 +0200)]
Remove encrypted data from .travis.yml
Secure values are now read from environment variables defined in the repository settings: https://docs.travis-ci.com/user/environment-variables/#Defining-Variables-in-Repository-Settings
Simon Brunel [Sun, 28 Aug 2016 10:18:18 +0000 (12:18 +0200)]
#3033 Deploy dist files and bower.json (tags)
Add a new Travis deploy task to push dist/*.js and bower.json files into tag sources:
- requires Travis GITHUB_AUTH_TOKEN and GITHUB_AUTH_EMAIL environment variables
- skipped if not built from the "release" branch
- release.sh must be executable (see comment)
- reads tag version from package.json
- fails if tag already exists
Simon Brunel [Thu, 25 Aug 2016 19:13:27 +0000 (21:13 +0200)]
#3182 Gulp task to generate bower.json file
etimberg [Sat, 27 Aug 2016 12:29:09 +0000 (08:29 -0400)]
Update version for v2.2.2 release
Ekaterina Dontsova [Thu, 25 Aug 2016 16:52:12 +0000 (19:52 +0300)]
Fix #3044 Line chart single data point centering (#3166)
In line charts, when there is only one label and data point, both are now horizontally centered.
Evert Timberg [Tue, 23 Aug 2016 21:09:31 +0000 (17:09 -0400)]
Merge pull request #3191 from chartjs/fix/2994
Fix issues with repeated labels in the category scale and added a tes…
Evert Timberg [Tue, 23 Aug 2016 21:09:18 +0000 (17:09 -0400)]
Merge pull request #3192 from chartjs/fix/2872
When drawTicks is false, we should not include their size in the size…
etimberg [Tue, 23 Aug 2016 00:09:09 +0000 (20:09 -0400)]
When drawTicks is false, we should not include their size in the size of the axis
Evert Timberg [Mon, 22 Aug 2016 22:03:56 +0000 (18:03 -0400)]
Fix issues with repeated labels in the category scale and added a test to cover this case.
Evert Timberg [Mon, 22 Aug 2016 21:53:55 +0000 (17:53 -0400)]
Merge pull request #3131 from Lighnat0r/master
Use parser options in getPixelForValue for time scale
Evert Timberg [Mon, 22 Aug 2016 21:53:31 +0000 (17:53 -0400)]
Merge pull request #3112 from MatthieuRivaud/MonotoneCubicInterpolation
Monotone cubic interpolation
Evert Timberg [Mon, 22 Aug 2016 21:53:11 +0000 (17:53 -0400)]
Merge pull request #3128 from vermeeca/3127-tooltip-sort
Accept chart data to itemSort callback for Tooltips
Tomasz Moń [Mon, 22 Aug 2016 18:50:48 +0000 (21:50 +0300)]
Remove smallestLabelSeparation from TimeScale (#3186)
In case of charts with over 4000 points, smallestLabelSeparation
calculation contributes significantly to total cpu usage (about 25% according
to built-in Chrome profiler). Important thing to note is that result
of this calculation is not used at all.
Related commits:
*
677c249b613bf1a4ebccb1bebda9f04f7346b866
introduced smallestLabelSeparation. It was used in calculateBaseWidth
function.
*
d198157fb8ea479ec9286bcf0ffb72e2e62e9661
removed last use of smallestLabelSeparation. Since then the calculated
value was never used.
mdewilde [Sun, 21 Aug 2016 21:00:29 +0000 (23:00 +0200)]
Document possible options for animation.easing (#3111)
List all possible values for animation.easing and reference URL with more information (taken from code comment).
Karthik Iyengar [Fri, 12 Aug 2016 16:31:54 +0000 (22:01 +0530)]
Added borderDash support for grid lines (#3136) (#3142)
* Added borderDash support for grid lines (#3136)
* Save and restore context to prevent border dash being applied to other elements
* Adds support for borderDashOffset, checks for setLineDash (IE9/IE10)
* Fixes tests
Ekaterina Dontsova [Thu, 11 Aug 2016 19:40:25 +0000 (22:40 +0300)]
Fix #2966: 0 values in logarithmic scale for line and vertical bar charts (#3016)
Lighnat0r [Wed, 10 Aug 2016 17:14:02 +0000 (19:14 +0200)]
Use parser options in getPixelForValue for time scale
Craig Vermeer [Wed, 10 Aug 2016 13:54:21 +0000 (09:54 -0400)]
3127 - Modify the itemSort callback for tooltips to accept a third parameter of the data object passed to the chart
Evert Timberg [Wed, 10 Aug 2016 03:00:50 +0000 (23:00 -0400)]
Merge pull request #3094 from chartjs/fix/3090
Make the iframe not focusable by using tabIndex of -1
Zach Panzarino [Wed, 10 Aug 2016 01:39:03 +0000 (01:39 +0000)]
Remove empty if statement in element.line.js
Zach Panzarino [Wed, 10 Aug 2016 01:35:34 +0000 (01:35 +0000)]
Remove unneeded trailing commas
Zach Panzarino [Wed, 10 Aug 2016 00:12:56 +0000 (00:12 +0000)]
Merge 'Documentation updates' #3110
Zach Panzarino [Tue, 9 Aug 2016 14:34:59 +0000 (14:34 +0000)]
Update docs and add plugin section (suggested by @simonbrunel)
MatthieuRivaud [Tue, 9 Aug 2016 07:32:10 +0000 (09:32 +0200)]
Calling |helpers.sign| instead of |Math.sign| directly for IE and Safari compatibility.
MatthieuRivaud [Tue, 9 Aug 2016 07:28:09 +0000 (09:28 +0200)]
Fix spanGaps probing in updateBezierControlPoints
Evert Timberg [Mon, 8 Aug 2016 20:34:12 +0000 (16:34 -0400)]
Merge pull request #3114 from ashiguruma/master
Added section on using patterns to fill datasets
Tom Loudon [Mon, 8 Aug 2016 16:39:36 +0000 (17:39 +0100)]
Added section on using patterns to fill datasets chartjs/Chart.js#1323
MatthieuRivaud [Mon, 8 Aug 2016 15:02:58 +0000 (17:02 +0200)]
Fixed splineCurveMonotone unit test (for real this time)
MatthieuRivaud [Mon, 8 Aug 2016 14:33:32 +0000 (16:33 +0200)]
Fixed splineCurveMonotone unit test
MatthieuRivaud [Mon, 8 Aug 2016 13:56:53 +0000 (15:56 +0200)]
Recovered a fix lost when branching.
MatthieuRivaud [Mon, 8 Aug 2016 13:35:46 +0000 (15:35 +0200)]
- Added dataset option |cubicInterpolationMode| to allow for curves with different interpolation modes on the same graph (updated doc accordingly)
- Added new sample file to demonstrate the monotone cubic interpolation mode
- Fixed a typo in a comment in updateBezierControlPoints
MatthieuRivaud [Mon, 8 Aug 2016 12:01:30 +0000 (14:01 +0200)]
Implement monotone cubic interpolation (see issue #3086).
Zach Panzarino [Mon, 8 Aug 2016 03:31:15 +0000 (03:31 +0000)]
Update link pattern for popular extensions
Zach Panzarino [Mon, 8 Aug 2016 03:08:13 +0000 (03:08 +0000)]
Documentation updates
Adds a lot of new information to the docs that will help developers better utilize the entire Chart.js library
List of implemented changes:
- Reverse option for legends (resolves #3102)
- Information about chart resizing (resolves #3023)
- Mixed chart types (resolves #2825) (resolves #2431)
- Chart library comparison table (resolves #2605)
- getDetasetMeta function information (resolves #2521)
- Popular Extensions (resolves #2365)
Evert Timberg [Fri, 5 Aug 2016 20:59:05 +0000 (16:59 -0400)]
Merge pull request #3103 from laviniaclare/master
changed 'chart there are' to 'charts there are'
laviniaclare [Fri, 5 Aug 2016 18:51:55 +0000 (11:51 -0700)]
changed 'chart there are' to 'charts there are'
Evert Timberg [Thu, 4 Aug 2016 22:55:32 +0000 (18:55 -0400)]
Make the iframe not focusable by using tabIndex of -1
Evert Timberg [Wed, 3 Aug 2016 20:10:37 +0000 (16:10 -0400)]
Merge pull request #3088 from djhuistra/patch-1
Chart.pluginService -> Chart.plugins in documentation
djhuistra [Wed, 3 Aug 2016 19:06:21 +0000 (21:06 +0200)]
Chart.pluginService -> Chart.plugins in documentation
Apparently Chart.pluginService is deprecated, but this name is still used in the documentation. I suggest to update it :)
Evert Timberg [Mon, 1 Aug 2016 11:39:00 +0000 (07:39 -0400)]
Merge pull request #3070 from sibennayak/fix/3046
Docs: Apply a recommendation (fixes #3046)
Siben Nayak [Mon, 1 Aug 2016 09:56:46 +0000 (15:26 +0530)]
Docs: Apply a recommendation (fixes #3046)
Evert Timberg [Sun, 31 Jul 2016 19:19:23 +0000 (15:19 -0400)]
Merge pull request #3067 from chartjs/fix/3066
Handle the case where all points are skipped in a line
Evert Timberg [Sat, 30 Jul 2016 18:46:28 +0000 (14:46 -0400)]
Handle the case where all points are skipped in a line
Evert Timberg [Sat, 30 Jul 2016 17:01:31 +0000 (13:01 -0400)]
Prep for a v2.2.1 release
Evert Timberg [Sat, 30 Jul 2016 16:59:59 +0000 (12:59 -0400)]
Merge pull request #3064 from chartjs/fix/2560
Recalculate the size of the scale in units when the end point is chan…
Evert Timberg [Sat, 30 Jul 2016 16:59:52 +0000 (12:59 -0400)]
Merge pull request #3065 from chartjs/fix/3056
Fix 2 line drawing issues and add new tests for these cases
Evert Timberg [Sat, 30 Jul 2016 16:55:42 +0000 (12:55 -0400)]
Fix 2 line drawing issues and add new tests for these cases
Evert Timberg [Sat, 30 Jul 2016 15:33:59 +0000 (11:33 -0400)]
Fix JS Hint warning
Evert Timberg [Sat, 30 Jul 2016 15:06:13 +0000 (11:06 -0400)]
Recalculate the size of the scale in units when the end point is changed.
Evert Timberg [Sat, 30 Jul 2016 13:52:46 +0000 (09:52 -0400)]
Merge pull request #3063 from chartjs/fix/2631
Handle possibility of a undefined arc element in the doughnut chart
Evert Timberg [Sat, 30 Jul 2016 13:41:35 +0000 (09:41 -0400)]
Handle possibility of a undefined arc element in the doughnut chart
Evert Timberg [Sat, 30 Jul 2016 13:06:30 +0000 (09:06 -0400)]
Merge pull request #3062 from chartjs/fix/3030
Fix docs typo
Evert Timberg [Sat, 30 Jul 2016 13:02:40 +0000 (09:02 -0400)]
Fix docs typo
Evert Timberg [Fri, 29 Jul 2016 11:29:27 +0000 (07:29 -0400)]
Merge pull request #3058 from benpdavison/patch-1
small typo
Ben Davison [Fri, 29 Jul 2016 09:56:59 +0000 (10:56 +0100)]
small typo
This should either be "rgb(0, 0, 0)" or "rgba(0, 0, 0, 0.1)". However, based on the default value it should be the latter.
Tanner Linsley [Fri, 29 Jul 2016 05:44:22 +0000 (23:44 -0600)]
Create thankyou.md
Evert Timberg [Thu, 28 Jul 2016 22:23:32 +0000 (18:23 -0400)]
Version bump for v2.2.0
Evert Timberg [Thu, 28 Jul 2016 22:15:44 +0000 (18:15 -0400)]
Merge pull request #3052 from chartjs/fix/3043
Fix line controller stacking with multiple axes and add a test
Evert Timberg [Thu, 28 Jul 2016 22:10:07 +0000 (18:10 -0400)]
Fix line controller stacking with multiple axes and add a test
Evert Timberg [Thu, 28 Jul 2016 22:02:56 +0000 (18:02 -0400)]
Merge pull request #3028 from chartjs/fix/span-gaps
Refactoring of the line drawing function to make `spanGaps` work correctly
Evert Timberg [Thu, 28 Jul 2016 22:02:31 +0000 (18:02 -0400)]
Merge pull request #3045 from IonutLaceanu/master
getElementAtEvent: enforce one element limit
Evert Timberg [Thu, 28 Jul 2016 13:16:58 +0000 (09:16 -0400)]
Merge pull request #3048 from mdewilde/master
Correct duplicate error
mdewilde [Thu, 28 Jul 2016 11:20:18 +0000 (13:20 +0200)]
Correct probable copy paste issue
mdewilde [Thu, 28 Jul 2016 11:16:21 +0000 (13:16 +0200)]
Correct duplicate error
Jeff Esp [Wed, 27 Jul 2016 19:09:13 +0000 (15:09 -0400)]
Fix #2922 Make the XAxis based hover/tooltip pick the item at the same x-axis value
Ionut Laceanu [Wed, 27 Jul 2016 16:27:08 +0000 (19:27 +0300)]
getElementAtEvent: enforce one element limit
Evert Timberg [Wed, 27 Jul 2016 00:57:34 +0000 (20:57 -0400)]
Merge pull request #3039 from ianks/getLabelMoment-fix
Fix out of bounds index access in getLabelMoment
Ian Ker-Seymer [Tue, 26 Jul 2016 18:45:05 +0000 (14:45 -0400)]
Fix out of bounds index access in getLabelMoment
Previously, calling getLabelMoment with an out of bound index would cause an
error such as this:
```
Uncaught TypeError: Cannot read property 'null' of undefined
```
This happens because there is not always guaranteed to be a labelMoment on
at the current datasetIndex.
One example of this is practice comes from a this function call:
```js
// since the are not always guaranteed to be at least two labelMoments
// \ / this index can be out of bounds
// |
var tickWidth = me.getPixelForTick(1) - me.getPixelForTick(0) - 6;
```
This patch simply ensures that the `labelMoments` for the `datasetIndex` are
defined before accessing properties on it.
Evert Timberg [Mon, 25 Jul 2016 15:20:11 +0000 (11:20 -0400)]
Merge pull request #3032 from Neabfi/patch-1
Correction of spelling mistakes
Neabfi [Mon, 25 Jul 2016 14:53:28 +0000 (10:53 -0400)]
Correction of spelling mistake
Neabfi [Mon, 25 Jul 2016 14:50:35 +0000 (10:50 -0400)]
Correction of spelling mistake
Evert Timberg [Sun, 24 Jul 2016 22:21:24 +0000 (18:21 -0400)]
Fix JSHint warnings
Evert Timberg [Sun, 24 Jul 2016 22:12:36 +0000 (18:12 -0400)]
Refactoring of the line drawing function to make `spanGaps` work correctly. Added a lot more test conditions to the line element tests. Ensured that the line controller correctly calculated bezier control points when there was a point to be skipped
Evert Timberg [Sun, 24 Jul 2016 13:02:47 +0000 (09:02 -0400)]
Merge pull request #3027 from moberwasserlechner/bugfix/3026
Remove non existing property from radar samples #3026
Michael Oberwasserlechner [Sun, 24 Jul 2016 08:49:03 +0000 (10:49 +0200)]
Remove non existing property from radar samples #3026
Evert Timberg [Tue, 19 Jul 2016 22:56:09 +0000 (18:56 -0400)]
Merge pull request #2947 from chartjs/fix/524
Add polar area start angle setting
Evert Timberg [Tue, 19 Jul 2016 22:52:03 +0000 (18:52 -0400)]
Merge pull request #2998 from chartjs/v2.2.0-rc.2-release
Bump version to v2.2.0-rc.2
Evert Timberg [Tue, 19 Jul 2016 22:47:08 +0000 (18:47 -0400)]
Bump version to v2.2.0-rc.2
Nick Downie [Tue, 19 Jul 2016 21:01:41 +0000 (22:01 +0100)]
Fix missing comma syntax error in js block
Evert Timberg [Tue, 19 Jul 2016 02:25:54 +0000 (22:25 -0400)]
Merge pull request #2984 from slinhart/master
Issue #1012. Added offsetAngle option for radar charts.
Evert Timberg [Mon, 18 Jul 2016 22:18:58 +0000 (18:18 -0400)]
Merge pull request #2986 from sibennayak/master
Fix the Pie Chart hover issue (#2983)
Evert Timberg [Mon, 18 Jul 2016 22:18:36 +0000 (18:18 -0400)]
Merge pull request #2991 from tiagoroldao/issue-2990
Check for existence of data element before accessing property
Tiago Roldão [Mon, 18 Jul 2016 21:05:44 +0000 (22:05 +0100)]
Check for existence of data element before accessing property
unknown [Mon, 18 Jul 2016 05:11:30 +0000 (23:11 -0600)]
changed option name for radar chart from offsetAngle to startAngle. Added test to make sure correct angles are computed for all points in the radar chart (with and without startAngle option set).
Siben Nayak [Sun, 17 Jul 2016 13:35:21 +0000 (19:05 +0530)]
Merge branch 'master' of https://github.com/sibennayak/Chart.js
Siben Nayak [Sun, 17 Jul 2016 13:31:59 +0000 (19:01 +0530)]
FIx the Pie Chart hover issue (#2983)
Siben Nayak [Sun, 17 Jul 2016 13:31:59 +0000 (19:01 +0530)]
FIx the Pie Chart hover issue (#2983)
unknown [Sun, 17 Jul 2016 00:59:22 +0000 (18:59 -0600)]
Merge remote-tracking branch 'chartjs-origin/master'
unknown [Sun, 17 Jul 2016 00:58:04 +0000 (18:58 -0600)]
Add an option for radar chart to have offsetAngle. Issue #1012