mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-12 11:16:51 +01:00
Pie cleanup.
This commit is contained in:
6
Chart.min.js
vendored
6
Chart.min.js
vendored
File diff suppressed because one or more lines are too long
@@ -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"
|
||||
}
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user