mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-01 11:40:25 +00:00
chart background color
This commit is contained in:
parent
7189a8fcfb
commit
7375282124
1 changed files with 3 additions and 1 deletions
|
|
@ -254,9 +254,11 @@ ready (model) ->
|
|||
for obj in task.get('history')
|
||||
matrix.push [obj.date, obj.value]
|
||||
data = google.visualization.arrayToDataTable matrix
|
||||
|
||||
|
||||
options = {
|
||||
title: 'History'
|
||||
#TODO use current background color: $(el).css('background-color), but convert to hex (see http://goo.gl/ql5pR)
|
||||
backgroundColor: 'whiteSmoke'
|
||||
}
|
||||
|
||||
chart = new google.visualization.LineChart(document.getElementById( task.get('id') + '-chart' ))
|
||||
|
|
|
|||
Loading…
Reference in a new issue