fix(dashboard): fix traffic and line charts

pull/46/head
KostyaDanovsky 9 years ago committed by kostya.danovsky
parent 5322ca6740
commit 86750dce86

@ -9,8 +9,8 @@
.controller('DashboardLineChartCtrl', DashboardLineChartCtrl);
/** @ngInject */
function DashboardLineChartCtrl(layoutColors, layoutPaths, baUtil) {
var graphColor = layoutColors.primary;
function DashboardLineChartCtrl(layoutColors, layoutPaths, layoutTheme, baUtil) {
var graphColor = layoutTheme.blur ? '#000000' : layoutColors.primary;
var chartData = [
{ date: new Date(2012, 11), value: 0, value0: 0 },
{ date: new Date(2013, 0), value: 15000, value0: 19000},

@ -9,7 +9,9 @@
.controller('TrafficChartCtrl', TrafficChartCtrl);
/** @ngInject */
function TrafficChartCtrl(layoutColors, $scope) {
function TrafficChartCtrl($scope, layoutColors, layoutTheme) {
$scope.transparent = layoutTheme.blur;
var palette = layoutColors.bgColorPalette;
$scope.doughnutData = [
{

@ -1,4 +1,4 @@
<div class="channels-block transparent">
<div class="channels-block" ng-class="{'transparent': transparent}">
<div class="chart-bg"></div>
<div class="traffic-chart" id="trafficChart">
<div class="canvas-holder">

Loading…
Cancel
Save