Commit Graph

2489 Commits

Author SHA1 Message Date
Evert Timberg
9b8c24c965 Make sure that the border width of the tooltip color box is always correct 2017-06-07 18:50:48 -04:00
Ben McCann
2a9a57e316 Use the latest 6.x LTS release for Travis builds (#4346) 2017-06-07 23:21:07 +02:00
Raquel Guimaraes
7ee8da9c7f Fix broken link on animations page #4324 2017-06-04 20:15:21 -04:00
Evert Timberg
a9308301e3 Fix vertical alignment of legend labels (#4318)
Ensure that disabled legend style is drawn in the center of the text and that the text is correctly centered in the box.
2017-06-04 19:34:05 +02:00
Evert Timberg
fd49ac9200 Provide a blank default global layout option (#4319) 2017-06-04 19:32:44 +02:00
OlduwanSteve
8eee12486d Added 'devicePixelRatio' option to override the window's DPR setting (#4270) 2017-06-04 18:57:55 +02:00
Evert Timberg
0d1f68cd9c Fix incorrect unitStepSize option. It should be stepSize (#4320) 2017-06-04 18:51:27 +02:00
Jerome Touffe-Blin
fa6be2f772 Fix inconsistent aspect ratio 2017-06-04 09:41:13 -04:00
Andrew
f7f177f5ad Implemented aligment by senior unit in time axis. (#4267)
Implemented alignment by major unit in the time scale. This allows showing the first tick of a larger unit like days in a special way and is part of the basis of the time series scale.
2017-05-29 18:40:10 -04:00
Ricardo Costa
dab0a7f699 Fix onHover event not being triggered (#4297)
Fix onHover event not being triggered

The core controller was looking at the wrong object (options.hover) to
find the function to be called on hover. The function is provided on the
top level options object (options.onHover).

By using the helper function, there's no need to verify if the callback
is defined, as the helper already does that.

Fixes #4296
2017-05-28 17:23:20 -04:00
ApoorvA
394382b931 Add tooltip textLabelColor callback (#4199)
Add a new tooltip callback `labelTextColor` that returns the colour for each item in the body of the tooltip.

Fixes issue #4191
2017-05-28 08:39:29 -04:00
Stephen Boissiere
2258199c22 Add hard coded integer constants for *_SAFE_INTEGER which are not available on IE 2017-05-27 11:56:17 -04:00
Ben McCann
75791988d3 Upgrade dependencies 2017-05-27 10:54:08 -04:00
Ben McCann
1cbba830fd Refactor time scale methods into a common location 2017-05-26 08:13:12 -04:00
Ben McCann
04ab523dd4 Upgrade dependencies (#4272) 2017-05-25 17:53:37 +02:00
Ben McCann
ea725c0d20 Fix code climate badge and link (#4277) 2017-05-25 17:52:39 +02:00
Simon Brunel
6ecad0b33c Attempt to fix the failing deploy step 2017-05-25 16:05:37 +02:00
Evert Timberg
4dda5529b9 Bump version to v2.6.0 (#4237) 2017-05-19 22:08:33 +02:00
Simon Brunel
9f67266df3 Deploy to GitHub pages (#4256)
Add Travis CI task to deploy the docs, samples and dist files to chartjs.github.io for the `release` and `master` branches. A `latest` symbolic links is also created for each folder to the highest version (or `master` if any).
2017-05-19 21:58:34 +02:00
Simon Brunel
0075373bec Add GA tracking code to docs 2017-05-19 21:44:24 +02:00
Xingan Wang
20452ddb7c Fix invalid link in area.md (#4257) 2017-05-13 19:30:23 +02:00
Simon Brunel
aa76bc6d7e Enable the 'search-plus' GitBook plugin 2017-05-13 18:17:34 +02:00
Ben McCann
50e2ba953d Use https to load scripts from CDN in samples (#4255) 2017-05-13 17:24:00 +02:00
Jamie McElwain
0bbc3fa8f3 Added width + height arguments to ctx.drawImage
Previous functionality meant that images would be drawn at their source file size regardless of whether custom width or height properties were set.
2017-05-13 09:26:20 -04:00
Simon Brunel
e45ac3c945 Make "dedicated to the chart canvas" a requirement (#4253) 2017-05-13 14:14:47 +02:00
Simon Brunel
c4c00b5834 Fix RequireJS doc to use UMD file instead (#4252) 2017-05-13 14:14:02 +02:00
Simon Brunel
3ff5d489c1 Document the new filling modes and options (#4251) 2017-05-13 14:13:05 +02:00
etimberg
d7335bf1ee initial data update docs 2017-05-08 18:44:01 -04:00
Ben McCann
d9542227a8 Remove executable bit from js files (#4222) 2017-05-07 19:35:17 +02:00
Ben McCann
9f793a715f Remove unnecessary variable 2017-05-01 21:37:54 -04:00
Simon Brunel
f0c6b3f834 Fix legend and title layout options update 2017-04-29 11:38:42 -04:00
Ben McCann
34292cb335 Add financial chart type to plugin docs 2017-04-29 11:38:09 -04:00
Ben McCann
8811759e1c Remove malformed comment
Fixes https://github.com/chartjs/Chart.js/issues/4181
2017-04-26 18:53:53 -04:00
etimberg
a75ae13b07 Make it clear that labels need to be specified when using a category axis on a line chart 2017-04-23 07:28:40 -04:00
Simon Brunel
f7d2d7536a Fix failing instanceof when reading context
`instanceof HTMLCanvasElement/CanvasRenderingContext2D` fails when the item is inside an iframe or when running in a protected environment. We could guess the types from their toString() value but let's keep things flexible and assume it's a sufficient condition if the item has a context2D which has item as `canvas`.
2017-04-22 13:14:16 -04:00
Simon Brunel
f2c569ef25 Enhance the responsive documentation
Make sure to explain responsiveness limitations with CANVAS elements and how to correctly setup a responsive chart using a dedicated and relatively positioned div wrapper.
2017-04-22 13:13:36 -04:00
Thomas Redston
3ec6377f11 Fix hidden charts hanging the browser
Ensure width cannot be greater than maxWidth. Similar to `minSize.height` calculation.
2017-04-22 11:25:09 -04:00
Ben McCann
86fb98eb37 Remove extraneous period 2017-04-17 20:10:30 -04:00
Ben McCann
d8385bd358 Combine the two contributing docs 2017-04-17 07:27:41 -04:00
Eric Nikolay Katz
205cedc0ef Enhancement: adds step-after functionality, true defaults to step-before (#4065)
* Adds step-after functionality, true defaults to step-before

* Update stepped line sample to include all variations of steppedLine configurations

* Update documentation on steppedLine values

* Add tests for new steppedLine values 'before' and 'after'
2017-04-16 16:13:13 -04:00
etimberg
19d6df21e3 Fix pointRadius and pointHitRadius settings for radar charts 2017-04-16 16:12:45 -04:00
GabrielMancik
254bd4bf86 Fixed calculation of scale min and max when dataset contains no values (#4064)
* Fixed different calculation of scale min and max when dataset contains no values
* Removed trailing spaces
* Added test for correct min/max calculation
* Removed trailing spaces
2017-04-15 12:37:49 -04:00
Joe B. Lewis
ecac839f68 Fix broken link to point to correct sample file. 2017-04-15 09:27:27 -04:00
Simon Brunel
50a80da1e9 Fix and refactor bar controllers
Merge most of the horizontalBar controller into the bar one but also fix stack groups and bar positioning when scales are stacked or when a min and/or max tick values are explicitly defined. Note that this is a breaking change for derived controllers that rely on the following removed methods: `calculateBarBase`, `calculateBarX`, `calculateBarY`, `calculateBarWidth` and `calculateBarHeight`.
2017-04-08 13:40:21 -04:00
cizmiak
69dd0bde6c scale service - respect new weight scale option for axes ordering (#4094)
* respect new scale option 'order' when ordering scales

* scale service - respect new weight scale option for axes ordering

* added test for scale ordering by weight

* removed trailing spaces from layout weight scale order test
2017-04-04 19:42:25 -04:00
etimberg
06383669be Adds a better error message when the chart type is incorrect. Previously the user got a message about type being undefined.
This gives something that's easier to understand and debug.
2017-04-03 17:39:09 -04:00
etimberg
9ea18065ad Add live samples back to docs for each chart type 2017-04-03 17:38:52 -04:00
Thomas Redston
35dcfe00b1 Time scale improvements to improve performance and reliability
* Make parseTime private
* start on fixing time scale
* Reimplement existing functionality
* Tidy tests
* Fix labels for non-linearly sized units

Months, quarters and years have non-constant numbers of seconds. A scale that's linear WRT milliseconds produces incorrect tick labels due to the label formatting losing precision (eg year labels lose month and day so a label of 2016-12-32 displays as 2016 instead of 2017).

* Re-implement tick generation

As in v2.5
2017-04-02 08:49:00 -04:00
etimberg
222479c5c7 Update the tooltip with a new caretPadding setting. Previously this value was essentially hard coded to
2 because of a typo that read it from the positioner output. Based on #3599 we agreed to make this into
a config setting.
2017-03-28 18:17:26 -04:00
Martin Zürn
6f99157eb8 Fixed misplaced data points on category scale
* Fixed issue, that category scale shows data points misplaced. See #4060
* Cleaned code
* Fixed Irregular whitespace
* Fixed error in case value is undefined
* Verified that no error is thrown in case value === null
2017-03-27 18:02:56 -04:00