From e58046f227be4bf3417cbbc0ecfb024f042ece18 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Wed, 11 Mar 2015 19:10:11 +0700 Subject: [PATCH] Stacked area charts --- app/app.html | 8 +- app/bower.json | 1 + app/scripts/{ => src}/app.jsx | 64 ++++-- app/scripts/{charts.jsx => src/bar_chart.jsx} | 67 +----- app/scripts/src/charts.jsx | 62 ++++++ app/scripts/src/stacked_area_chart.jsx | 200 ++++++++++++++++++ app/scripts/svground.js | 172 +++++++++++++++ app/styles/charts.css | 26 +++ app/styles/logo.css | 4 +- db/stat.go | 2 +- 10 files changed, 522 insertions(+), 84 deletions(-) rename app/scripts/{ => src}/app.jsx (67%) rename app/scripts/{charts.jsx => src/bar_chart.jsx} (78%) create mode 100644 app/scripts/src/charts.jsx create mode 100644 app/scripts/src/stacked_area_chart.jsx create mode 100644 app/scripts/svground.js diff --git a/app/app.html b/app/app.html index f10de3e..fae4856 100644 --- a/app/app.html +++ b/app/app.html @@ -11,8 +11,12 @@ + - - + + + + + diff --git a/app/bower.json b/app/bower.json index df5b0f1..46d6d8e 100644 --- a/app/bower.json +++ b/app/bower.json @@ -5,6 +5,7 @@ "react": "0.12.2", "react-router": "0.12.4", "jquery": "2.1.3", + "lodash": "3.5.0", "normalize.css": "3.0.2" } } diff --git a/app/scripts/app.jsx b/app/scripts/src/app.jsx similarity index 67% rename from app/scripts/app.jsx rename to app/scripts/src/app.jsx index 4ffa42f..db5748e 100644 --- a/app/scripts/app.jsx +++ b/app/scripts/src/app.jsx @@ -87,11 +87,14 @@ var Menu = React.createClass({ return (