Pie cleanup.

This commit is contained in:
Tanner Linsley 2015-05-15 22:45:17 -06:00
parent 872c92cd4b
commit ad972a0c5c
4 changed files with 3243 additions and 3165 deletions

6503
Chart.js vendored

File diff suppressed because it is too large Load Diff

6
Chart.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -34,27 +34,22 @@
data: [{
value: randomScalingFactor(),
backgroundColor: "#F7464A",
hoverBackgroundColor: "#FF5A5E",
label: "Red"
}, {
value: randomScalingFactor(),
backgroundColor: "#46BFBD",
hoverBackgroundColor: "#5AD3D1",
label: "Green"
}, {
value: randomScalingFactor(),
backgroundColor: "#FDB45C",
hoverBackgroundColor: "#FFC870",
label: "Yellow"
}, {
value: randomScalingFactor(),
backgroundColor: "#949FB1",
hoverBackgroundColor: "#A8B3C5",
label: "Grey"
}, {
value: randomScalingFactor(),
backgroundColor: "#4D5360",
hoverBackgroundColor: "#616774",
label: "Dark Grey"
}

View File

@ -117,7 +117,7 @@
// Built in hover styling
if (this.active.length && this.options.hoverMode) {
this.active[0].backgroundColor = this.data.data[this.active[0]._index].hoverBackgroundColor || helpers.color(this.active[0].backgroundColor).saturate(0.5).darken(0.35).rgbString();
this.active[0].backgroundColor = this.data.data[this.active[0]._index].hoverBackgroundColor || helpers.color(this.data.data[this.active[0]._index].backgroundColor).saturate(0.5).darken(0.35).rgbString();
}
// Built in Tooltips