Tanner Linsley
6b0e609935
Bar Chart Stacked nestedConfig
2015-06-02 16:48:39 -06:00
Tanner Linsley
74d3890ba9
no legend yet... :(
2015-06-02 15:14:51 -06:00
Tanner Linsley
df4d2d2594
Stroked tooltip colors
2015-06-02 15:14:06 -06:00
Tanner Linsley
b7dc2339f4
line: skipNull functionality
2015-06-02 13:42:09 -06:00
Evert Timberg
edbb235668
Tooltip titles now work in the line chart. Getting ever closer to being done
2015-05-31 20:16:04 -04:00
Evert Timberg
92776ce0ac
Animations & tool tips show. The title is not correct yet.
2015-05-31 16:55:17 -04:00
Evert Timberg
e48c7f168b
Add back line fill option. This is set on a per dataset basis, but there is an override in the config. Demo this in the line sample.
2015-05-31 10:24:53 -04:00
Evert Timberg
8a550852da
Check in work from floobits with minor changes to fix some errors
2015-05-31 09:47:10 -04:00
Tanner Linsley
6af94298ec
Radar Chart
2015-05-27 10:28:00 -06:00
Tanner Linsley
1163efbcca
Merge remote-tracking branch 'origin/v2.0-dev' into v2.0-dev
...
Conflicts:
src/Chart.PolarArea.js
2015-05-26 22:06:20 -06:00
Tanner Linsley
3a32144d89
Polar Area deep data
2015-05-26 22:02:41 -06:00
Evert Timberg
e3519f5bd4
More nested config stuff. Not sure what all of the options in the line config do, but left them in. Ensured that tooltips work.
2015-05-26 21:16:18 -04:00
Evert Timberg
7d8b1712a7
Convert bar chart to use nested config. Noticed that the segmentShowStroke option wasn't used at all.
2015-05-26 19:30:34 -04:00
Evert Timberg
54b51038ca
Updated bar chart to use new nested config for bars. Removed unused relativeBars option. barBorderWidth was not used, but seems useful so we will keep it until later refactoring.
2015-05-26 19:11:05 -04:00
Evert Timberg
e774a893da
Use new animation options in the animation service.
2015-05-26 18:54:36 -04:00
Tanner Linsley
b03a057a76
Nested globals
2015-05-26 16:52:16 -06:00
Evert Timberg
a2d477ac5e
Moved radial scale into Chat.Scale.js. Registered as "radialLinear" which will allow radialLogarithmic, etc in the future. Updated the polar area and radar charts to use the new scale config. The scales draw, but the points do not. This is no different than the current v2.0 branch
2015-05-24 14:33:12 -04:00
Evert Timberg
1352dfeb0f
Fix the y scales that were missed in the previous check in
2015-05-23 21:49:01 -04:00
Evert Timberg
d4e7765a50
Clean up some unused config options. Renamed 'show' to 'display' for scales since that was clearer and maintains backwards compatibility.
2015-05-23 21:44:50 -04:00
Evert Timberg
73b579c962
Remove old linear scale
2015-05-23 21:21:40 -04:00
Evert Timberg
b67afcd727
Bar chart converted to new scale system. Added bar chart multi axis sample.
2015-05-23 18:26:34 -04:00
Evert Timberg
a10e245e5a
Use correct tooltip events in each chart
2015-05-23 18:15:57 -04:00
Evert Timberg
d998c803d3
Move line chart over to use new scale config. This adds support for multiple y axes. Added an example demonstrating this.
2015-05-23 15:19:30 -04:00
Evert Timberg
a559ab85cd
Ensure consistency in the helpers.toRadians name
2015-05-23 15:18:33 -04:00
Evert Timberg
c66edc9169
dataset axis to be used in the line chart and the bar chart
2015-05-23 15:18:08 -04:00
Evert Timberg
b7606c7a8d
Rename onHover to events to match the line chart
2015-05-23 15:15:04 -04:00
Evert Timberg
12e2ace039
Merge remote-tracking branch 'upstream/v2.0-dev' into feature/v2.0dev-xy
...
Conflicts:
src/Chart.Core.js
Fixed the sample files & chart type initialize methods so that this.data does not get set to undefined.
2015-05-20 09:03:22 -04:00
Evert Timberg
ed4b9945f8
Initial dataset scale class
2015-05-20 08:33:26 -04:00
Tanner Linsley
951e714e77
Playground and big changes
2015-05-20 00:03:45 -07:00
Evert Timberg
008bb1aab3
Set new tooltip templates for the scatter chart
2015-05-19 20:33:39 -04:00
Evert Timberg
4cc24d475a
Clean up the scale service. It's now more of a helper function for fitting the scales. Since each chart needed to know it's scales, there wasn't much point in registering them into the service. When we support overlapping charts, we can do something fancier
2015-05-19 18:22:05 -04:00
etimberg
4b8c9bc30d
Fix a drawing bug when drawTicks is false.
2015-05-18 20:59:21 -04:00
etimberg
978ed1bc1e
Created a multi axis sample file. Added an option to draw ticks for the axes. This is useful when in a multi axis scenario so that the axis that does not draw grid lines does not have weird lines.
2015-05-18 20:39:59 -04:00
etimberg
676765e808
Initial config merge. Handles special cases for objects and arrays and merges smarter than simply replacing the default object. Tested by overriding the vertical axis 0 point colour. Also implemented dataset axis binding. If nothing is specified, the dataset is bound to the first x and y axis.
2015-05-18 14:19:34 -04:00
Evert Timberg
f2065265c8
Fix an error in the scale service that prevented the chart from filling the canvas fully.
2015-05-18 10:27:39 -04:00
Evert Timberg
a6e2eec9e0
Linear scale drawing improvements. Ensured that the scatter plot configuration has a different line colour for the 0 axis
2015-05-18 09:39:01 -04:00
Evert Timberg
2e383da0d8
Handle the beginAtZero option for a linear scale. Added a helper for Math.sign
2015-05-18 08:51:13 -04:00
Evert Timberg
492292e94b
Remove x label rotation code since we dynamically adjust the number of labels to show and as such do not need to rotate
2015-05-18 08:43:38 -04:00
Evert Timberg
454f519b6d
Fix jshint warnings
2015-05-18 08:27:18 -04:00
Evert Timberg
56d53e3ad4
Ensure that you always have at least 2 ticks on the linear axis
2015-05-17 13:29:17 -04:00
Evert Timberg
67b3d32218
Initial implementation of a scatter chart. Uses a new style of config from the other charts. For now, the config is not changeable.
2015-05-17 13:20:37 -04:00
Evert Timberg
db1365c8ce
Initial check in of the scale service and the scale constructor registration. An initial implementation of a linear scale that can be drawn in both horizontal and vertical orientations.
2015-05-16 19:40:52 -04:00
Evert Timberg
b5b0081108
Some helper functions needed for better scales.
2015-05-16 19:38:31 -04:00
Tanner Linsley
fff81c455d
Tooltip Position, Active Element Position, Tooltip animation follow
2015-05-15 23:07:21 -06:00
Tanner Linsley
ad972a0c5c
Pie cleanup.
2015-05-15 22:45:17 -06:00
Tanner Linsley
872c92cd4b
Doughnut/Pie Chart refactor
2015-05-15 22:34:08 -06:00
Tanner Linsley
1d8d19d404
Prettified, and half way through doughut
2015-05-15 20:54:01 -06:00
Tanner Linsley
ed6f234205
Bar chart pivot fix
2015-05-15 17:14:09 -06:00
Tanner Linsley
09c11440dd
inGroupRange function for bar charts label mode
2015-05-15 17:07:41 -06:00
Tanner Linsley
e58421a08a
Line Chart label hoverMode & tooltips
2015-05-15 17:03:51 -06:00
Tanner Linsley
fb580a6e48
lineChart single hoverMode tooltips, fallbackColor global
2015-05-15 16:40:01 -06:00
Tanner Linsley
f79ebdaa88
Stable Bar Chart, DRY core functions
2015-05-15 00:04:42 -06:00
Tanner Linsley
b432a3d6db
labelMode tooltips and hover events
2015-05-14 23:18:47 -06:00
Tanner Linsley
ef4c46f2be
labelMode Tooltips almost there!
2015-05-14 17:25:56 -06:00
Tanner Linsley
4ef57315da
Getting into 'label' hoverMode tooltips
2015-05-12 17:22:47 -06:00
Tanner Linsley
63e115e7a8
hoverMode: "single" tooltips
2015-05-12 15:47:24 -06:00
Tanner Linsley
9f98334d6f
Mid-code commit
2015-05-12 15:42:20 -06:00
Tanner Linsley
15f724f146
Rough Tooltips for 'single' hoverMode
2015-05-12 12:55:48 -06:00
Tanner Linsley
afb22d15ae
Better events
2015-05-12 10:35:55 -06:00
etimberg
460399f651
Merge branch 'fix/bar_chart_negative_values' of https://github.com/etimberg/Chart.js into etimberg-fix/bar_chart_negative_values
...
# Conflicts:
# samples/bar.html
# src/Chart.Bar.js
# src/Chart.Core.js
2015-05-12 08:00:14 -04:00
Tanner Linsley
9e4d90e110
Color Animation, Color Autopilot
2015-05-12 01:13:16 -06:00
Tanner Linsley
df91739b77
hoverMode, onHover, key fixes
2015-05-11 19:43:17 -06:00
Tanner Linsley
d3f7071983
Merge pull request #1114 from etimberg/feature/get_bar_at_event
...
Create a getBarAtEvent function that returns the single bar that was clicked on
2015-05-11 19:27:52 -06:00
etimberg
d287a01b44
Make sure that the _start item is cleaned up during save.
2015-05-11 21:22:37 -04:00
Tanner Linsley
0e29cfdfda
Bar attempt #5
2015-05-11 18:12:44 -06:00
Tanner Linsley
cf07df07d6
Bar Attempt # 4
2015-05-08 16:20:21 -06:00
Tanner Linsley
4b34bbadf9
Merge pull request #1098 from WouterSioen/fix-typo
...
Fix typo
2015-05-05 16:01:30 -06:00
William Entriken
5443886ec3
Merge pull request #1068 from nnnick/animation-refactory
...
Animation refactory
2015-05-04 15:55:59 -04:00
William Entriken
a8063de6b8
Merge pull request #856 from tannerlinsley/editable-chart-config
...
Data now editable right from chart config
2015-05-04 15:28:03 -04:00
Evert Timberg
e13ada2b43
Ensure that the bar draws to the correct spot
2015-05-02 15:03:40 -04:00
Evert Timberg
62b29282fd
Fix a minor bug
2015-05-02 14:59:33 -04:00
Evert Timberg
2814c8e44c
Remove Math.sign
2015-05-02 14:56:16 -04:00
William Entriken
7f513b87ee
Merge pull request #952 from msmiley/patch-1
...
add datasetLabel for multiTooltip on dynamically-added points
2015-04-24 16:32:24 -04:00
William Entriken
a3d4bc0bfe
Merge pull request #851 from jtblin/master
...
Fix #507 - calculate container width and heigh without padding
2015-04-24 10:28:29 -04:00
Evert Timberg
e67d198e69
Create a getBarAtEvent function that returns the single bar that was clicked on
2015-04-18 09:56:40 -04:00
Evert Timberg
b5692c8534
Merge pull request #1069 from mackuba/fix_endpoint
...
Prevent taking vertical space for X labels more than once
2015-04-17 06:33:42 -04:00
Kuba Suder
2e311896ad
prevent taking vertical space for x labels more than once
...
calculateXLabelRotation() subtracts space needed for x labels from
this.endPoint, but if this block is called more than once then the space
is subtracted more than once and the chart gets smaller and smaller with
every iteration
2015-04-16 22:23:17 +02:00
William Entriken
b0a780822a
Merge pull request #1025 from pijey/feature/offsetgridlines-linechart
...
Add offsetGridLines option to Line charts
2015-04-16 15:27:43 -04:00
William Entriken
889c9de779
Merge #756 Fixes #661
2015-04-16 15:17:28 -04:00
Evert Timberg
604d6bd4e3
Merge pull request #677 from rylanhalteman/fix-yLabel-padding
...
add 10 to yLabelWidth on set, rather than on use
2015-04-12 08:06:23 -04:00
Tanner Linsley
14f4fae786
Only start digest on first request. Cleanup
2015-04-12 00:05:31 -06:00
Evert Timberg
c476db0dd7
Use findNextWhere correctly.
2015-04-11 23:05:05 -04:00
Evert Timberg
0a5f92a854
Remove the minAnimationSteps option since we did not end up needing it.
2015-04-11 21:11:49 -04:00
Evert Timberg
b1cbf04f25
Remove the unused lastTimeRun from the animation service
2015-04-11 20:47:35 -04:00
Tanner Linsley
70b8bf106c
Always execute last frame
2015-04-11 18:42:11 -06:00
Tanner Linsley
99bf85e913
Merge remote-tracking branch 'origin/animation-refactory' into animation-refactory
...
Conflicts:
src/Chart.Core.js
2015-04-11 18:37:01 -06:00
Tanner Linsley
e0c208be58
Frame Dropper
2015-04-11 18:34:06 -06:00
Evert Timberg
26eca23706
Implement cancel animation frame in the animation service
2015-04-11 20:17:46 -04:00
Evert Timberg
98253fea5d
Fix some bugs in the animation stuff
2015-04-11 20:08:17 -04:00
Evert Timberg
9a13dd78fc
Fix a typo
2015-04-11 19:42:54 -04:00
Evert Timberg
3e59438646
Integrate animation service with chart
2015-04-11 19:33:20 -04:00
Tanner Linsley
7a6f2b4f06
Src changes... derrrr
2015-04-11 17:30:06 -06:00
Evert Timberg
d3579334b2
Add an option to control the minimum number of animation steps.
2015-04-11 19:17:30 -04:00
Evert Timberg
0b8fd966ff
Chart animations will now use the animation service provided in Chart.animationService.
2015-04-11 19:02:50 -04:00
Evert Timberg
972bc5636d
Merge pull request #711 from cmweiss/master
...
Default color for Doughnut/Pie
2015-04-09 11:25:45 -04:00
dima117
4009dbd6a0
helpers.generateLabels throws "labelTemplateString is not defined" exception #1035
2015-03-31 22:06:41 +03:00
pijey
2677360f4b
Add offsetGridLines option to Line charts
2015-03-25 11:51:56 +01:00
William Entriken
8e5f1d9667
Merge pull request #575 from msrocka/master
...
fix #570 : getDecimalPlaces throws error
2015-03-17 09:28:54 -04:00
William Entriken
47d23601b1
Fix CodeClimate issues
2015-03-16 19:14:36 -04:00
Moshe Brevda
3e6883bdc0
Use default canvas size if one cannot be intelligently procured
2015-03-16 13:58:09 +02:00