From 4f1f09c7f574db0d2585e870b1a22b9572716181 Mon Sep 17 00:00:00 2001 From: hackyminer Date: Wed, 25 Apr 2018 03:16:30 +0900 Subject: [PATCH] public: tuning chart style --- public/css/stats.css | 6 ++++-- public/js/controllers/StatsController.js | 5 ++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/public/css/stats.css b/public/css/stats.css index 45b84d45f..e20af4029 100644 --- a/public/css/stats.css +++ b/public/css/stats.css @@ -10,7 +10,7 @@ text.shadow { path { stroke: steelblue; - stroke-width: 2; + stroke-width: 1; fill: none; } @@ -48,6 +48,8 @@ path { path.slice{ stroke-width:2px; + stroke: #3a3a3a; + opacity: .7; } polyline{ @@ -80,5 +82,5 @@ path { text-align: center; } text { - font: 12px sans-serif; + font: 12px "Helvetica Neue", Helvetica, Arial, sans-serif; } \ No newline at end of file diff --git a/public/js/controllers/StatsController.js b/public/js/controllers/StatsController.js index 4c14c8ee5..e0a1804cf 100755 --- a/public/js/controllers/StatsController.js +++ b/public/js/controllers/StatsController.js @@ -177,8 +177,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams, .style('fill', function (d,i) { //console.log(i); return color(d._id); - }) - .style('stroke', color); + }); legend.append('text') @@ -310,7 +309,7 @@ angular.module('BlocksApp').controller('StatsController', function($stateParams, return d3.svg.axis() .scale(x) .orient("bottom") - .ticks(8) + .ticks(30) } // function for the y grid lines