mirror of https://github.com/akveo/blur-admin
fix(dashboard): fix traffic and line charts
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…
Reference in New Issue