0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00

Added line color variable to charts

This commit is contained in:
Peter Zimon 2021-02-22 17:58:43 +01:00
parent 707c7396bf
commit 1e4d6e0c0f

View file

@ -15,6 +15,7 @@ export default Component.extend({
// public attrs // public attrs
nightShift: false, nightShift: false,
lineColor: '#14b8ff',
stats: null, stats: null,
tagName: '', tagName: '',
@ -132,10 +133,10 @@ export default Component.extend({
cubicInterpolationMode: 'monotone', cubicInterpolationMode: 'monotone',
data: dateValues, data: dateValues,
fill: false, fill: false,
backgroundColor: '#45C32E', backgroundColor: this.lineColor,
pointRadius: 0, pointRadius: 0,
pointHitRadius: 10, pointHitRadius: 10,
borderColor: '#45C32E', borderColor: this.lineColor,
borderJoinStyle: 'miter' borderJoinStyle: 'miter'
}] }]
}); });