Evert Timberg
2268bef321
Merge pull request #3242 from Pikamander2/new_branch
...
Fix zero border width not working (issue #3241 )
2016-09-02 18:46:16 -04:00
Ekaterina Dontsova
6408ba426c
Fix #3022 Multi-lines label alignment ( #3239 )
2016-09-03 00:26:02 +02:00
Pikamander2
f3c51fc624
Fix zero border width not working (issue #3241 )
2016-09-01 02:28:10 -04:00
Pikamander2
2002ca058b
Fix zero border width not working (issue #3241 )
2016-09-01 02:18:42 -04:00
Ekaterina Dontsova
4a4dccd6c1
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.
2016-08-25 18:52:12 +02:00
Evert Timberg
8afac7bd3c
Merge pull request #3191 from chartjs/fix/2994
...
Fix issues with repeated labels in the category scale and added a tes…
2016-08-23 17:09:31 -04:00
etimberg
904f19fb7e
When drawTicks is false, we should not include their size in the size of the axis
2016-08-22 20:09:09 -04:00
Evert Timberg
1749d90faf
Fix issues with repeated labels in the category scale and added a test to cover this case.
2016-08-22 18:03:56 -04:00
Evert Timberg
b33aff2091
Merge pull request #3131 from Lighnat0r/master
...
Use parser options in getPixelForValue for time scale
2016-08-22 17:53:55 -04:00
Evert Timberg
89531c6b93
Merge pull request #3112 from MatthieuRivaud/MonotoneCubicInterpolation
...
Monotone cubic interpolation
2016-08-22 17:53:31 -04:00
Evert Timberg
c94673e55a
Merge pull request #3128 from vermeeca/3127-tooltip-sort
...
Accept chart data to itemSort callback for Tooltips
2016-08-22 17:53:11 -04:00
Tomasz Moń
c283867f73
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:
* 677c249b61
introduced smallestLabelSeparation. It was used in calculateBaseWidth
function.
* d198157fb8
removed last use of smallestLabelSeparation. Since then the calculated
value was never used.
2016-08-22 14:50:48 -04:00
Karthik Iyengar
349a8a33ea
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
2016-08-12 12:31:54 -04:00
Ekaterina Dontsova
31197978b7
Fix #2966 : 0 values in logarithmic scale for line and vertical bar charts ( #3016 )
2016-08-11 21:40:25 +02:00
Lighnat0r
ff0e8eadab
Use parser options in getPixelForValue for time scale
2016-08-10 19:14:02 +02:00
Craig Vermeer
88de438c0e
3127 - Modify the itemSort callback for tooltips to accept a third parameter of the data object passed to the chart
2016-08-10 09:54:21 -04:00
Evert Timberg
5fea5a1156
Merge pull request #3094 from chartjs/fix/3090
...
Make the iframe not focusable by using tabIndex of -1
2016-08-09 23:00:50 -04:00
Zach Panzarino
c20d391b49
Remove empty if statement in element.line.js
2016-08-10 01:39:03 +00:00
Zach Panzarino
abfbdd5f31
Remove unneeded trailing commas
2016-08-10 01:35:34 +00:00
MatthieuRivaud
7635ab4a4e
Calling |helpers.sign| instead of |Math.sign| directly for IE and Safari compatibility.
2016-08-09 09:32:10 +02:00
MatthieuRivaud
3869dd110a
Fix spanGaps probing in updateBezierControlPoints
2016-08-09 09:28:09 +02:00
MatthieuRivaud
4aabc0cb82
Recovered a fix lost when branching.
2016-08-08 15:56:53 +02:00
MatthieuRivaud
d06fbc772f
- 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
2016-08-08 15:35:46 +02:00
MatthieuRivaud
2409908027
Implement monotone cubic interpolation (see issue #3086 ).
2016-08-08 14:01:30 +02:00
Evert Timberg
554f31a1bb
Make the iframe not focusable by using tabIndex of -1
2016-08-04 18:55:32 -04:00
Evert Timberg
d47ef17736
Handle the case where all points are skipped in a line
2016-07-30 14:46:28 -04:00
Evert Timberg
cec8d8b7d5
Merge pull request #3064 from chartjs/fix/2560
...
Recalculate the size of the scale in units when the end point is chan…
2016-07-30 12:59:59 -04:00
Evert Timberg
eb6124fea8
Fix 2 line drawing issues and add new tests for these cases
2016-07-30 12:55:42 -04:00
Evert Timberg
b86e42f2ae
Fix JS Hint warning
2016-07-30 11:33:59 -04:00
Evert Timberg
0bb2e478db
Recalculate the size of the scale in units when the end point is changed.
2016-07-30 11:06:13 -04:00
Evert Timberg
51518a7149
Handle possibility of a undefined arc element in the doughnut chart
2016-07-30 09:41:35 -04:00
Evert Timberg
f60344dfdb
Fix line controller stacking with multiple axes and add a test
2016-07-28 18:10:07 -04:00
Evert Timberg
7ebc533cdc
Merge pull request #3028 from chartjs/fix/span-gaps
...
Refactoring of the line drawing function to make `spanGaps` work correctly
2016-07-28 18:02:56 -04:00
Evert Timberg
23ca08184e
Merge pull request #3045 from IonutLaceanu/master
...
getElementAtEvent: enforce one element limit
2016-07-28 18:02:31 -04:00
Jeff Esp
1e5cdc6188
Fix #2922 Make the XAxis based hover/tooltip pick the item at the same x-axis value
2016-07-27 21:09:13 +02:00
Ionut Laceanu
f46a9472b5
getElementAtEvent: enforce one element limit
2016-07-27 19:27:08 +03:00
Ian Ker-Seymer
e4dd158b24
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.
2016-07-26 14:45:05 -04:00
Evert Timberg
47b5ad60ae
Fix JSHint warnings
2016-07-24 18:21:24 -04:00
Evert Timberg
2016630daa
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
2016-07-24 18:12:36 -04:00
Evert Timberg
e94d3c0730
Merge pull request #2947 from chartjs/fix/524
...
Add polar area start angle setting
2016-07-19 18:56:09 -04:00
Evert Timberg
88d9398982
Merge pull request #2984 from slinhart/master
...
Issue #1012 . Added offsetAngle option for radar charts.
2016-07-18 22:25:54 -04:00
Tiago Roldão
9df06e8c2e
Check for existence of data element before accessing property
2016-07-18 22:05:44 +01:00
unknown
1a63113bc0
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).
2016-07-17 23:11:30 -06:00
unknown
d7733b2221
Merge remote-tracking branch 'chartjs-origin/master'
2016-07-16 18:59:22 -06:00
unknown
ad7ed249af
Add an option for radar chart to have offsetAngle. Issue #1012
2016-07-16 18:58:04 -06:00
Evert Timberg
7930137afa
Merge pull request #2925 from Joshuabaker2/master
...
Ability to manually set bar chart bar width
2016-07-16 14:46:59 -04:00
Evert Timberg
bfa37e7d68
Merge pull request #2926 from chartjs/fix/2915
...
Fix bar and line controllers to convert strings to numbers when stacking
2016-07-13 18:22:11 -04:00
Evert Timberg
3dd15f64d2
Merge pull request #2918 from chartjs/fix/2916
...
Fix time point lines. Improved logic for using the value in the time …
2016-07-13 18:21:57 -04:00
Josh Baker
191c280387
Added support for manually specifying bar thickness in bar charts
2016-07-12 17:31:50 -07:00
Evert Timberg
524493fe06
Merge pull request #2883 from Mesonyx/mesonyx/bugfix/null-tooltips
...
Fix for null value label/x-axis multi-tooltip bug
2016-07-11 10:34:20 -04:00
Evert Timberg
49c4169010
Bring back capping of bezier curve points and have an option to disable it ( #2948 )
2016-07-09 15:24:41 -06:00
Evert Timberg
b6686f00f4
Non numeric y ( #2849 )
...
* Category scale can now read from the xLabels and yLabels properties.
* Update docs with section regarding the data object.
* Add sample file with non numeric Y and fix animations
2016-07-09 09:22:25 -06:00
Evert Timberg
72813d5112
Merge branch 'amlethojalen-master'
2016-07-09 10:02:08 -04:00
Evert Timberg
6f392639c2
Merge branch 'master' of https://github.com/amlethojalen/Chart.js into amlethojalen-master
2016-07-09 09:39:43 -04:00
Evert Timberg
609df5fb16
Merge pull request #2885 from neilmacintyre/master
...
cached index and length
2016-07-09 09:12:57 -04:00
Evert Timberg
8226f3432b
Fix JSHint warnings and remove commented code
2016-07-09 09:08:41 -04:00
Evert Timberg
a452094f5d
Add polar area start angle setting
2016-07-09 09:05:02 -04:00
Evert Timberg
7ca5f91b10
Fix bar and line controllers to convert strings to numbers when considering the values for stacking the chart. Simplified the base calculation for the bar charts and added test coverage to ensure that strings will work correctly.
2016-07-06 18:22:42 -04:00
Evert Timberg
fca419e075
Merge pull request #2924 from jeffesp/master
...
Fixes #2923 : swapped tooltip xAlign & yAlign
2016-07-06 17:57:31 -04:00
Evert Timberg
44a9866bd8
Merge pull request #2870 from chartjs/fix/2802
...
Consider left and top when determining value from pixel in category s…
2016-07-06 17:53:50 -04:00
jeffesp
0c5a17af00
Fixes #2923 : swapped tooltip xAlign & yAlign
2016-07-06 09:49:31 -04:00
Shayne Linhart
0dccc85e3a
Added usePointStyle option to label boxes
...
- Closes #2252
- Allows label boxes to match the shape(pointStyle) of the corresponding data.
* Removed unused varaible from legend's draw()
2016-07-05 20:08:29 -06:00
amlethojalen
68728fc9a7
Added ability to render a line chart as a stepped line chart.
...
Added option.elements.line.stepped
Added dataset.steppedLine
Added Sample, and updated documentation.
2016-07-06 11:13:12 +10:00
Evert Timberg
758698c354
Fix time point lines. Improved logic for using the value in the time scale. Improve value passing in the line and bubble controllers/
2016-07-05 20:52:17 -04:00
amlethojalen
bddc870201
Added ability for drawing a Line Chart as a stepped Line Chart. (reverted from commit efd06c886d
)
2016-07-06 10:25:01 +10:00
amlethojalen
efd06c886d
Added ability for drawing a Line Chart as a stepped Line Chart.
2016-07-05 19:50:53 +10:00
Evert Timberg
3cdd66ca58
Merge pull request #2867 from mtanda/fix_stacked_scatter_line_chart
...
Fix to work stacked scatter line chart (fixes #2878 )
2016-07-04 22:57:40 -04:00
Neil Macintyre
8bd0c56b84
cached index and length
2016-06-30 18:10:11 -04:00
Adam Templeton
6f1344d4e9
fix for null tooltip bug
2016-06-30 11:34:53 -05:00
Mitsuhiro Tanda
2bf2be7a9c
fix stacked scatter line chart
2016-06-30 22:28:21 +09:00
Evert Timberg
f2bbe32150
Merge pull request #2865 from nmac143/master
...
Pie chart borders truncated #2844
2016-06-29 20:30:02 -04:00
nmac143
426466d051
Fixed truncation of pie chart borders
2016-06-29 19:39:10 -04:00
Evert Timberg
3660d9be39
Consider left and top when determining value from pixel in category scale
2016-06-29 07:00:09 -04:00
Evert Timberg
35e3f01f01
Merge pull request #2857 from chartjs/fix/2809
...
Polar area graph scale should start at 0 by default
2016-06-28 21:59:39 -04:00
Adam Templeton
103957c4e0
adds x-axis hover option for charts and tooltips, highlights all dots on x-axis upon x-axis hover
2016-06-28 14:15:12 -05:00
André Wallat
72f423fb95
Fix tooltip not shown for missing dataset
...
When two datasets are shown and they don't have the same x-coordinates, then the position of the tooltip is not calculated correctly, when using mode 'label' or 'dataset'. This fix checks if the position of every dataset exists, before it is used.
2016-06-28 09:45:08 +02:00
Evert Timberg
c2e37ce8e2
Polar area graph scale should start at 0 by default
2016-06-27 22:25:38 -04:00
William Entriken
f2270ed8db
Merge pull request #2741 from duerahan/master
...
time type xAxis height crah in line chart #2622
2016-06-27 13:59:41 -04:00
Evert Timberg
be32a4c6f0
Merge pull request #2823 from chartjs/fix/2708
...
Use the scale center point for the polar area chart center
2016-06-22 22:07:53 -04:00
Evert Timberg
3cf1cfa3de
Fix JSHint warning
2016-06-22 21:48:49 -04:00
Evert Timberg
3280003f86
Merge pull request #2811 from chartjs/fix/span-gaps-global
...
Span gaps option should be specified at the chart level
2016-06-22 21:46:12 -04:00
Evert Timberg
0e276c968a
Merge pull request #2821 from chartjs/fix/2526
...
Gracefully handle creating the chart with no config
2016-06-22 21:46:06 -04:00
Evert Timberg
05d41daa9e
Merge pull request #2822 from chartjs/fix/2604
...
Allow passing a value to the time scale getPixelForValue method
2016-06-22 21:45:59 -04:00
Alexey Kopleman Dvurechensky
a9e0f2cae6
Fix statements in for() in tooltips's getAveragePosition.
2016-06-22 14:58:12 +03:00
Evert Timberg
0871dd96a5
Use the scale center point for the polar area chart center
2016-06-21 19:57:13 -04:00
Evert Timberg
48ac791a0c
Allow passing a value to the time scale getPixelForValue method
2016-06-21 19:03:30 -04:00
Evert Timberg
553b20dc44
Gracefully handle creating the chart with no config
2016-06-21 18:45:22 -04:00
Evert Timberg
db8ed6a6c0
Span gaps option should be specified at the chart level
2016-06-20 14:42:09 -04:00
Simon Brunel
47912f49b4
Remove duplicated function names
2016-06-18 11:15:25 +02:00
Simon Brunel
f36123925c
Fix #2734 Cleanup unused variables
2016-06-18 11:00:11 +02:00
Evert Timberg
f106e1bf2d
fix tooltip with array returns
2016-06-14 19:19:15 -04:00
Evert Timberg
f3d4ee9333
Capping these to the chart bounds causes lines to bend during pan and zoom
2016-06-12 09:19:33 -04:00
Simon Brunel
53eb7667dd
New datasets update plugin extensions
...
Add `beforeDatasetsUpdate` and `afterDatasetsUpdate` plugin notifications during the chart update. Plugins are able to cancel the datasets update by explicitly returning false to `beforeDatasetsUpdate`. For consistency, rename `(before|after)DatasetDraw` to `(before|after)DatasetsDraw`.
2016-06-11 00:17:48 +02:00
Simon Brunel
dfdbd4465c
Allow to register/unregister an array of plugins
...
The plugins service now accepts an array of plugin instances to register or unregister (for consistency, renamed `Chart.plugins.remove` to `unregister`). Also added a few methods to manipulate registered plugins, such as `count`, `getAll` and `clear` (mainly used by our unit tests).
2016-06-11 00:17:44 +02:00
Simon Brunel
a55c17d73f
Enhance plugin notification system
...
Change the plugin notification behavior: this method now returns false as soon as a plugin *explicitly* returns false, else returns true. Also, plugins are now called in their own scope (so remove the never used `scope` parameter).
2016-06-10 22:26:55 +02:00
Simon Brunel
7a419af4c2
Rename plugin service and notification method
...
Rename `Chart.pluginService` to `Chart.plugins` (so move the old Chart.plugins array as a private member of the service), and rename `notifyPlugins` to `notify` for consistency with other service methods.
2016-06-10 22:26:35 +02:00
Evert Timberg
e7834442ac
Merge pull request #2739 from msimulcik/master
...
Fix of radial linear scale font family settings bug
2016-06-09 18:36:26 -04:00
Evert Timberg
b1c50ed0c2
Merge pull request #2732 from chartjs/scale-colors-per-line
...
Scale colors per line
2016-06-09 18:35:48 -04:00
Evert Timberg
3aeddf5239
Merge pull request #2723 from chartjs/vertical-legend
...
Vertical legend
2016-06-09 18:35:29 -04:00
Jack Valuntine
7d63bf085a
time type xAxis height crah in line chart
...
if input only one data in dataset and xAxis type is date make offset crash.
check offset value and don't devide 0 value.
Add xAxis check test case.
2016-06-09 13:34:15 +09:00
Evert Timberg
8d94e3e427
Merge pull request #2712 from simonbrunel/helpers-cleanup
...
Rewrite a few helpers to be more efficient
2016-06-08 20:08:44 -04:00
Jack Valentine
29bc3b0b8b
ChartJS tooltip fontColor fix
...
fixed global variable name fix
callback variable name fix
- 'titleColor' to 'titleFontColor'
- 'bodyColor' to 'bodyFontColor'
- 'footerColor' to 'footerFontColor'
2016-06-09 00:04:20 +09:00
Miroslav Simulcik
6e3c6c05ad
Fixed radial linear scale font family settings bug
2016-06-08 15:21:54 +02:00
Evert Timberg
fbecfa2baf
Reduce duplicated code in core scale draw method
2016-06-07 22:03:36 -04:00
문승찬
7ebf85eacf
change tooltip font color option
...
bodyColor -> bodyFontColor
titleColor -> titleFontColor
footerColor -> footerFontColor
2016-06-08 10:16:38 +09:00
Evert Timberg
6b2cfd5e11
Support arrays of colors and line widths in cartesian axes
2016-06-07 20:22:06 -04:00
Evert Timberg
a687749ed4
Radial linear scale array properties for line width and color
2016-06-07 20:09:33 -04:00
Ryan M. Poe
77357e57d6
Refactor spanGaps for line graphs with sparse data ( #2721 )
...
Fix #2435 , this very slim patch (including its relevant documentation addition) adds a small option to line chart datasets (spanGaps) that allows users trying to graph sparse datasets to have lines between null entries drawn, rather than omitted.
2016-06-07 09:15:26 +02:00
Evert Timberg
71cbc4c5c1
Optimize legend drawing
2016-06-06 22:14:42 -04:00
Evert Timberg
80bd7d3f60
Initial vertical legend mode
2016-06-06 21:41:40 -04:00
Evert Timberg
959b4eedf6
Merge pull request #2716 from thebenedict/master
...
Make canvas element display: block by default, with config option to …
2016-06-06 10:14:59 -04:00
thebenedict
0b19689b00
style canvas element display: block
by default
2016-06-06 17:05:44 +03:00
Simon Brunel
287cefc9b9
Rewrite a few helpers to be more efficient
...
Resolve at definition time if a browser built-in method or our polyfill should be used, so avoid checking it for each call. Also, `helpers.extend` doesn't need to iterate two times on the function arguments. Finally, remove helpers never referenced.
2016-06-05 23:23:19 +02:00
Evert Timberg
76d284c4ae
Merge branch 'multiline_labels' of https://github.com/Tarqwyn/Chart.js into Tarqwyn-multiline_labels
...
Conflicts:
src/core/core.scale.js
2016-06-04 20:48:26 -04:00
zachpanz88
148c66fe95
Update this -> me with master
2016-06-04 14:16:35 -04:00
zachpanz88
5fae4dd305
Change this -> me in source files
...
This change allows for smaller minified code in the final version, resulting in a smaller file size. Some files had previously used _this, but that has been changed to me to keep consistency throughout the project.
2016-06-04 14:14:16 -04:00
Evert Timberg
76a64930a3
Merge pull request #2696 from NoelOConnell/master
...
Fix for chart title not updating
2016-06-04 10:51:29 -04:00
Evert Timberg
ca07f72f6b
Merge pull request #2698 from dennybiasiolli/fix_label_fillstyle
...
legend: fix rendering in browsers other than Chrome
2016-06-04 10:47:15 -04:00
Tarqwyn
e856dda04f
Suggested changes from PR review
...
Changes to be committed:
modified: docs/02-Scales.md
modified: src/core/core.helpers.js
modified: src/core/core.scale.js
modified: test/core.helpers.tests.js
2016-06-03 20:15:29 +01:00
Tarqwyn
2bc8e3c7f6
This PR allows for multi-line labels, as per Slack discussion..
...
Usage: If a label is an `array` as opposed to a `string` i.e. `[["June","2015"], "July"]` then each element is treated as a seperate line. The appropriate calculations are made to determine the correct height and width, and rotation is still supported.
view samples/line-multiline-labels.html to see it working.
On branch multiline_labels
Changes to be committed:
modified: docs/03-Line-Chart.md
new file: samples/line-multiline-labels.html
modified: src/core/core.helpers.js
modified: src/core/core.scale.js
2016-06-03 17:12:19 +01:00
Denny Biasiolli
435b392e92
legend: fix rendering in browsers other than Chrome when dataset.backgroundColor is Array
2016-06-03 11:39:30 +02:00
Noel
54d1e49bb7
Fix for chart title not updating
...
https://github.com/chartjs/Chart.js/issues/2686
Chart options were using a cache value from initialize function.
Now updating values in the beforeUpdate lifecycle.
2016-06-03 09:07:14 +01:00
Evert Timberg
7ea36aead3
Add a way to know when a resize occurs.
2016-06-02 20:43:38 -04:00
Evert Timberg
829c2be2bc
Merge pull request #2680 from chartjs/fix/clipping
...
Remove clipping and add plugin hooks.
2016-06-02 20:35:39 -04:00
Aaron Ballard
7f70afe864
Added a reference to Chart within Chart for Issue #2483
2016-06-02 16:04:33 -05:00
Evert Timberg
10f01088e4
add afterDatasetDraw in correct place
2016-06-01 07:18:27 -04:00
Evert Timberg
b96fdcaf85
Docs on new plugin callback
2016-05-31 22:28:22 -04:00
Evert Timberg
b22e32c007
Remove clipping and add plugin hooks. Zoom plugin can then do the clipping itself
2016-05-31 22:16:29 -04:00
Evert Timberg
600f5b9ba0
Improve core and polar area
2016-05-30 21:55:58 -04:00
Evert Timberg
a5167cc42d
Reduce duplicated code in doughnut controller
2016-05-30 21:33:11 -04:00
Evert Timberg
fcff496301
Improve bubble controller minification and code duplication.
2016-05-30 19:07:31 -04:00
Evert Timberg
a5ab4521a1
Merge pull request #2661 from chartjs/tooltip-improvements-and-tests
...
Improve tooltip performance and added new options
2016-05-29 12:10:30 -04:00
Evert Timberg
3cd21c8053
Linear and RadialLinear scales now derive from a common base class
2016-05-29 10:16:47 -04:00
Evert Timberg
6bc917c8e3
Improve testing on the CI
2016-05-28 21:08:20 -04:00
Evert Timberg
b646f6d816
Add a way of sorting tooltip items with a custom sort function
2016-05-28 20:47:36 -04:00
Evert Timberg
af5344462e
Improve tooltip minification
2016-05-28 19:39:15 -04:00
Evert Timberg
8d20379e29
Initial tooltip tests + fix a bug when the tooltip beforeLabel and afterLabel callbacks returned strings
2016-05-28 15:26:46 -04:00
Evert Timberg
9269411799
Merge pull request #2657 from chartjs/tooltip-color-callback
...
Provide a way to configure the colour of tooltip items
2016-05-28 12:14:27 -04:00
Evert Timberg
c1b8839a69
Merge pull request #2660 from chartjs/fix/2613
...
When destroying the chart, any animations should be stopped.
2016-05-28 11:26:09 -04:00
Evert Timberg
f247536b4a
When destroying the chart, any animations should be stopped.
2016-05-28 11:05:02 -04:00
Evert Timberg
528680d666
Merge pull request #2658 from chartjs/fix/2580
...
Allow turning off lines on a per dataset basis
2016-05-28 10:56:25 -04:00
Evert Timberg
327b8d82f5
Allow turning off lines on a per dataset basis
2016-05-27 22:20:51 -04:00
Evert Timberg
b3f8a53ea5
Merge pull request #2640 from chartjs/legend-and-title-as-plugins
...
Legend and title as plugins
2016-05-27 21:19:28 -04:00
Evert Timberg
66aa65be68
Tooltip now has a callback for configuring the colors of items displayed. Added docs and improved the options passed to the tooltip
2016-05-27 21:07:02 -04:00
Evert Timberg
bcd17e5840
Merge pull request #2649 from chartjs/fix/2647
...
Line points always need to pivot
2016-05-26 20:23:10 -04:00
Evert Timberg
c6eb8bf58c
Line points need always need to pivot after regardless of whether or not bezier points are updated. Bezier points should only be updated if the line tension is not 0.
2016-05-26 20:02:46 -04:00
Evert Timberg
cca4c76c00
Don't use translates and rotates for drawing rotated rectangles
2016-05-26 19:38:27 -04:00
Evert Timberg
46fc96bf4d
Remove unused code from core controller.
2016-05-25 21:30:22 -04:00
Evert Timberg
d6289c6129
Convert title block to a plugin
2016-05-25 21:28:02 -04:00
Evert Timberg
1ae0f5e4d4
Legend is attached to the graph as a plugin.
2016-05-25 21:23:46 -04:00
Simon Brunel
08de9faf10
Fix #2418 Firefox old version compatibility
...
Old versions of FF doesn't accept accessing the computed style via the 'max-width' and 'max-height' CSS notations using brackets, in which case the returned value is undefined. Changed the constraint methods to use maxWidth and mawHeight instead and make sure to test valid values.
2016-05-25 22:51:41 +02:00
Simon Brunel
7f71990a40
Decomplexify Chart.core.controller.eventHandler
...
Refactor redundant code, use local variables and introduce a new helper to compare arrays (Chart.helpers.arrayEquals).
2016-05-22 00:58:02 +02:00
Simon Brunel
d584afb543
Refactor controller scale methods
...
Rewrite these two methods to reduce code duplication. Note that options.scale is not anymore mapped to 'radialScale' ID but to 'scale' ID (see ensureScalesHaveIDs), since this ID is not referenced anywhere in the code base.
2016-05-22 00:25:53 +02:00
Simon Brunel
7108f78d2f
Refactor addElements and addElementAndReset
...
Data controllers should now rarely implement addElements and addElementAndReset but instead should define dataElementType (and optionally datasetElementType). Also remove some dead code (e.g. numBars, colorForNewElement, etc.).
2016-05-22 00:25:51 +02:00
Simon Brunel
a566d16e69
Refactor scale base pixel and point calculation.
2016-05-20 20:17:28 +02:00
Simon Brunel
8c5d8855c6
Merge pull request #2551 from chartjs/helper-perf-and-minification
...
Helpers improvements
2016-05-19 19:51:06 +02:00
Evert Timberg
ecb7ce133e
Merge pull request #2590 from haschu/fix/2589
...
This fixes #2589
2016-05-19 07:02:58 -04:00
haschu
393db2a609
This fixes #2584 ( #2592 )
...
Improve scale auto-skipper when labels are not rotated
2016-05-18 18:20:06 -04:00
Evert Timberg
f24dddeda7
Merge pull request #2567 from adileo/master
...
Fixed tooltip not showing in NULL datapoint in multi line chart
2016-05-18 17:51:49 -04:00
Evert Timberg
d23b2395ff
Merge pull request #2578 from simonbrunel/optimizations
...
Point element and line controller optimizations
2016-05-18 17:51:37 -04:00
Hagen Schulze
577c1406dd
This fixes #2589
2016-05-18 20:42:54 +02:00
AllenJB
966d737617
Fix handling of moments by scale.getRightValue
...
When using {x: moment, y: value} datapoints
2016-05-18 17:38:20 +01:00
Simon Brunel
93c28a4d5f
Optimize element.point and controller.line
...
Change some helpers.each() to `for` loops when iterating on a potentially large number of items and use more local variables when appropriate (making the minified build a bit smaller).
2016-05-18 00:25:45 +02:00
Evert Timberg
ca7434a5ea
Merge pull request #2569 from chartjs/fix/2216
...
Improve bar sizing
2016-05-17 18:04:23 -04:00
Ceane Lamerez
456ab9ca36
Fix #2574 - Add support to hide border on the chart
2016-05-17 21:35:19 +02:00
Simon Brunel
69521477a1
Remove useless hasOwnProperty checks
...
The Chart.helpers.each method uses Object.keys() to iterates on the object *own enumerable properties*, meaning that checking if object.hasOwnProperty() is useless.
2016-05-17 19:49:17 +02:00
Evert Timberg
45969a3903
Horizontal bars are similar
2016-05-16 22:17:45 -04:00
Evert Timberg
6bb6e5aa4b
Improve tick width for vertical bars
2016-05-16 22:14:33 -04:00
Adileo Barone
4b540e70cf
Fixed tooltip not showing in NULL datapoint in multi line chart
2016-05-16 21:02:57 +02:00
Evert Timberg
48368117e9
Helpers improvements
2016-05-14 15:59:40 -04:00
Simon Brunel
b64e03dbd0
Bump chartjs-color to version 2.0.0 ( #2549 )
...
Fix color animation because the color lib changed the `mix` implementation to match SASS behavior, so the weight specifies the amount of the first color that should be included in the returned color.
2016-05-14 13:35:35 -04:00
Blake Niemyjski
a3d75d2087
More perf and minification changes based on feedback
2016-05-14 08:58:42 -05:00
Blake Niemyjski
7e85245e4f
Fixed unit tests :D
2016-05-13 22:39:11 -05:00
Blake Niemyjski
53b08415ad
There were conflicting tick variables
2016-05-13 22:23:34 -05:00
Blake Niemyjski
b4a269da19
Updated magnification and possible bug fix in removeHoverStyle
2016-05-13 22:16:28 -05:00
Blake Niemyjski
bea68f1424
Performance and minification improvements
2016-05-13 22:07:39 -05:00
Evert Timberg
266fa66067
Merge pull request #2543 from chartjs/fix/2519
...
Error when first data point on time scale had null data
2016-05-13 19:54:57 -04:00
Evert Timberg
f34453cf8f
Error when first data point on time scale had null data
2016-05-13 19:50:59 -04:00
Evert Timberg
d0dd7ceabe
Provide different default tooltip functions for horizontal bar
2016-05-13 19:36:32 -04:00
Evert Timberg
30967ac415
Horizontal bar defaults should skip left edge
2016-05-13 19:13:34 -04:00
Evert Timberg
14021069c3
Merge branch 'master' into file-size-reduction
...
Conflicts:
src/controllers/controller.doughnut.js
src/controllers/controller.polarArea.js
2016-05-12 18:57:22 -04:00
Evert Timberg
8c209405e9
Merge branch 'iso_weekday' of https://github.com/tomduncalf/Chart.js into tomduncalf-iso_weekday
...
Conflicts:
docs/01-Scales.md
2016-05-12 18:24:14 -04:00
Evert Timberg
41c043dd23
Merge branch 'master' of https://github.com/nnnick/Chart.js
...
Conflicts:
docs/01-Scales.md
2016-05-12 18:22:55 -04:00
Evert Timberg
47f770c3ef
Merge pull request #2524 from ashiguruma/master
...
Allow canvas patterns instead of colors
2016-05-12 18:20:40 -04:00
Tom Loudon
05bfb7e964
Added CanvasPattern global flag for jshint
...
The core.helpers file was failing linting checks as the global CanvasPattern was not defined. Added the `/* global CanvasGradient */` statement to make linting pass. Updates chartjs/Chart.js#1323
2016-05-12 22:58:54 +01:00
Tom Duncalf
7ee5af81af
Add labelOffset option to scales
2016-05-11 10:43:22 +01:00
Tom Duncalf
8b3d079a50
Add isoWeekday option to allow time scale ticks in 'week' unit mode to start on a specified day of the week
2016-05-11 09:44:02 +01:00
Tom Loudon
04d4adda05
Allow pattern hover state in all chart types
...
Updated all chart types to use the helper.getHoverColor. Pattern fills can now be specified for both fill and line portions of a chart. Updates chartjs/Chart.js#1323
2016-05-10 17:28:29 +01:00
Tarqwyn
84b7d07526
Following a Slack conversation tadd new Callback to allow updates to datasets config (ie borderColor) based on results of the calculated scale, A typical use case would be apply a Gradient fill.
...
On branch feature_New_plugin_interface_afterScaleUpdate
Changes to be committed:
modified: dist/Chart.bundle.js
modified: dist/Chart.bundle.min.js
#On branch feature_New_plugin_interface_afterScaleUpdate
#Changes to be committed:
2016-05-10 15:59:12 +01:00
Tom Duncalf
3bef974c25
Add minRotation support
2016-05-10 12:33:36 +01:00
Evert Timberg
ebffa52dc2
allow callback or userCallback in the time scale
2016-05-09 17:14:25 -05:00
Evert Timberg
23722a8b25
Make the afterUpdate plugin method more useful
2016-05-09 17:14:15 -05:00
Tom Loudon
170fdab6a6
Removed 'background' from hover color helper name.
...
Patterns could be used for style attributes other than background e.g. stroke. Updates chartjs/Chart.js#1323
2016-05-09 07:29:52 +01:00
Evert Timberg
ee383ef4a6
Logarithmic scale improvements
2016-05-08 09:24:45 -04:00
Evert Timberg
e86a13dcef
More linear scale work
2016-05-08 08:32:48 -04:00
Evert Timberg
b35b246414
Merge branch 'master' into file-size-reduction
2016-05-08 08:11:16 -04:00
Evert Timberg
4ef5d942e6
Linear scale improvements
2016-05-08 07:55:29 -04:00
Evert Timberg
33d10374bb
Minor improvement to polar area controller
2016-05-07 21:37:24 -04:00
Evert Timberg
52a8654989
Ensure that when calculating tick width in the bar controller, we use the number of ticks in the scale, not the number of data points.
2016-05-07 21:28:13 -04:00
Evert Timberg
166801055e
Improvements to polar area controller. Moved common draw code up to core dataset controller
2016-05-07 21:04:39 -04:00