From 10be870f6d6c236d8f370eaf53af0f5d5611e381 Mon Sep 17 00:00:00 2001 From: Nikos Roussos Date: Fri, 24 Apr 2015 12:21:36 +0300 Subject: [PATCH] Fix KPI Reps stacks order --- remo/dashboard/static/dashboard/js/kpi.js | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/remo/dashboard/static/dashboard/js/kpi.js b/remo/dashboard/static/dashboard/js/kpi.js index 0cb00a32f..1e0e9d222 100644 --- a/remo/dashboard/static/dashboard/js/kpi.js +++ b/remo/dashboard/static/dashboard/js/kpi.js @@ -50,16 +50,16 @@ $(document).ready(function() { .y0(height) .y1(function(d) { return y(d.inactive); }); + var area_casual = d3.svg.area() + .x(function(d) { return x(d.week); }) + .y0(height) + .y1(function(d) { return y(d.casual_stack); }); + var area_active = d3.svg.area() .x(function(d) { return x(d.week); }) .y0(height) .y1(function(d) { return y(d.active_stack); }); - var area_casual = d3.svg.area() - .x(function(d) { return x(d.week); }) - .y0(height) - .y1(function(d) { return y(d.casual_stack); }); - var area_core = d3.svg.area() .x(function(d) { return x(d.week); }) .y0(height) @@ -129,13 +129,13 @@ $(document).ready(function() { svg.append('path') .datum(weeks) - .attr('class', 'area-people-casual') - .attr('d', area_casual); + .attr('class', 'area-people-active') + .attr('d', area_active); svg.append('path') .datum(weeks) - .attr('class', 'area-people-active') - .attr('d', area_active); + .attr('class', 'area-people-casual') + .attr('d', area_casual); svg.append('path') .datum(weeks)