Skip to content

Commit

Permalink
charts colors enhs
Browse files Browse the repository at this point in the history
  • Loading branch information
zhebrak committed Mar 7, 2015
1 parent 03804ef commit 5b4fb11
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions example/views.py
Expand Up @@ -53,10 +53,10 @@ class AboutView(WatchMixin, TemplateView):


def populate_stats():
if statsy.objects.count() > 10000:
if statsy.objects.count() > 100000:
return

start = time.mktime(datetime(year=2015, month=2, day=1).timetuple())
start = time.mktime(datetime(year=2015, month=3, day=1).timetuple())
end = time.mktime(datetime.now().timetuple())

for _ in range(20000):
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Expand Up @@ -3,7 +3,7 @@
from distutils.core import setup


__version__ = '0.1'
__version__ = '0.2'

short_description = 'Statistics for Django projects'

Expand Down
8 changes: 6 additions & 2 deletions statsy/static/statsy/app/js/dashboard.js
Expand Up @@ -74,9 +74,13 @@ var createChart = function(chart, series, label) {
}
}
},

// colorbrewer2.org — qualitative palette
colors: [
'#7cb5ec', '#90ed7d', '#f7a35c', '#8085e9',
'#f15c80', '#e4d354', '#8085e8', '#8d4653', '#91e8e1'
'rgb(141,211,199)', 'rgb(255,255,179)', 'rgb(190,186,218)',
'rgb(251,128,114)', 'rgb(128,177,211)', 'rgb(253,180,98)',
'rgb(179,222,105)', 'rgb(252,205,229)', 'rgb(217,217,217)',
'rgb(188,128,189)', 'rgb(204,235,197)', 'rgb(255,237,111)'
],

series: series
Expand Down

0 comments on commit 5b4fb11

Please sign in to comment.