Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tooltips #51

Closed
wants to merge 55 commits into from
Closed
Changes from 1 commit
Commits
Show all changes
55 commits
Select commit Hold shift + click to select a range
bd5bff2
initial pie labels commit
Mar 19, 2013
8b0cf16
basic font styling and fading
Mar 20, 2013
f076b16
Removed unnecessary lines
Mar 20, 2013
d7faabb
added em/%/px support to labelFontSize with px as fallback
Mar 20, 2013
d34947e
Basic tooltips for line and bar charts
Mar 20, 2013
e7667f0
removed console logs and test rects
Mar 20, 2013
33b36b1
fixed tooltip position
Mar 20, 2013
1567283
fixed line chart tooltip trigger area
Mar 20, 2013
911e0bb
added configurable tooltip options to chart object
Mar 20, 2013
81a57d0
fixed radar rotation issue
Mar 20, 2013
f1ea96e
fixed radar rotation issue
Mar 20, 2013
5d5757e
optimized tooltip registration
Mar 20, 2013
e5e746d
fixd radar tooltip typo
Mar 20, 2013
e73f761
implemented pie chart tooltips
Mar 23, 2013
a3d5a96
implemented polar area tooltips
Mar 23, 2013
ec530f5
implemented doughnut tooltips
Mar 23, 2013
6f4e43e
renamed tooltip stroke to border
Mar 23, 2013
6f72688
added further plans to readme
Mar 24, 2013
5501808
added further plans to readme
Mar 24, 2013
c010ecc
fixes issues #1 and #2
Mar 26, 2013
590a0ea
fixes issue #3
Mar 29, 2013
6917e9d
final fix for tooltip on scrolls issue #3
Mar 29, 2013
b4e34de
removing color node after creation
Mar 29, 2013
eec343f
added highlighting to currently hovered chart element
Apr 7, 2013
38dfd3e
More accurate bar tooltip area
Apr 7, 2013
c42b3ca
Fixed highlight stroke and fill
Apr 7, 2013
b0d385c
Label problem fixed.
Apr 9, 2013
52d950a
Merge pull request #5 from marvinrabe/tooltips
Apr 9, 2013
6929b78
reverted to tabs
Apr 10, 2013
7c72dc1
fixes issue #6. merged callado4's fix
callado4 Mar 25, 2013
be88b6e
added tooltip template configuration
Apr 15, 2013
0d51900
removed some spaces
Apr 16, 2013
4787498
merged tooltips
Apr 16, 2013
f829501
generalized tooltip options for more general options and defaults
Apr 16, 2013
43a5186
added pie label aligning
Apr 16, 2013
5097ad1
recompiled minified version
Apr 16, 2013
c741cc7
fixed pie chart example title
Apr 16, 2013
0a9f79e
Merge branch 'legends'
Apr 28, 2013
c746ef1
General defaults and options
Apr 28, 2013
9363d77
added tooltip shadow and border radius
Apr 28, 2013
8688995
Tooltip font sizes and height fix
Apr 28, 2013
89310b8
merged epeli/master
Apr 28, 2013
8e14d42
merged epeli/patch-1
Apr 28, 2013
ec95bdf
added missing options parameter
Apr 28, 2013
58d4f62
merged master
Apr 28, 2013
ad892e4
new minified version
Apr 28, 2013
cb1f6fb
new minified version
Apr 28, 2013
894e571
now handling tooltips via touch events if possible
May 3, 2013
2311ca5
merged touch events
May 3, 2013
53b0813
new minified version
May 3, 2013
935c7b2
new minified version
May 3, 2013
bdb3223
showTooltips. unstable status
May 4, 2013
8f24c00
fixed tooltips hide
May 4, 2013
eafd440
new minified version
May 4, 2013
a9c6e74
fixed min version
May 4, 2013
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixed radar rotation issue
  • Loading branch information
Christian Brandt committed Mar 20, 2013
commit f1ea96efe410480b838804682e1c090ab3107804
5 changes: 2 additions & 3 deletions Chart.js
Original file line number Diff line number Diff line change
@@ -528,8 +528,7 @@ var Chart = function(context){

ctx.save();
//translate to the centre of the canvas.
ctx.translate(width/2,height/2);
ctx.rotate(rotationDegree);
ctx.translate(width/2,height/2);
//We accept multiple data sets for radar charts, so show loop through each set
for (var i=0; i<data.datasets.length; i++){
ctx.beginPath();
@@ -563,7 +562,7 @@ var Chart = function(context){
}

}

ctx.rotate(rotationDegree);
}
ctx.restore();