adjusted chart spacing

This commit is contained in:
cubedro 2015-04-24 07:09:09 +03:00
parent 820dc786f6
commit cf6b42257b
3 changed files with 11 additions and 5 deletions

View File

@ -127,8 +127,12 @@ span.small-title span.small {
letter-spacing: -4px;
}
.big-info.chart {
padding-top: 12px;
}
.big-info.chart .big-details {
padding-top: 15px;
padding-top: 8px;
}
.big-info.chart {
@ -143,7 +147,7 @@ span.small-title span.small {
.blocks-holder {
width: 288px;
padding-top: 5px;
padding-top: 6px;
margin-left: -2px;
}

View File

@ -85,7 +85,7 @@ angular.module('netStatsApp.directives', []).
link: function(scope, element, attrs) {
var margin = {top: 0, right: 0, bottom: 0, left: 0};
var width = 280 - margin.left - margin.right,
height = 50 - margin.top - margin.bottom;
height = 63 - margin.top - margin.bottom;
var TICKS = 40;
@ -149,7 +149,9 @@ angular.module('netStatsApp.directives', []).
svg.append("g")
.attr("class", "x axis")
.attr("transform", "translate(0," + height + ")")
.call(xAxis);
.call(xAxis)
.selectAll("text")
.attr("y", 6);
svg.append("g")
.attr("class", "y axis")

View File

@ -5,7 +5,7 @@
$(this).tooltip('hide');
});
$.fn.sparkline.defaults.bar.height = 50;
$.fn.sparkline.defaults.bar.height = 63;
$.fn.sparkline.defaults.bar.barWidth = 6;
$.fn.sparkline.defaults.bar.barSpacing = 2;
$.fn.sparkline.defaults.bar.tooltipClassname = 'jqstooltip';