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);
|
.controller('DashboardLineChartCtrl', DashboardLineChartCtrl);
|
||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
function DashboardLineChartCtrl(layoutColors, layoutPaths, baUtil) {
|
function DashboardLineChartCtrl(layoutColors, layoutPaths, layoutTheme, baUtil) {
|
||||||
var graphColor = layoutColors.primary;
|
var graphColor = layoutTheme.blur ? '#000000' : layoutColors.primary;
|
||||||
var chartData = [
|
var chartData = [
|
||||||
{ date: new Date(2012, 11), value: 0, value0: 0 },
|
{ date: new Date(2012, 11), value: 0, value0: 0 },
|
||||||
{ date: new Date(2013, 0), value: 15000, value0: 19000},
|
{ date: new Date(2013, 0), value: 15000, value0: 19000},
|
||||||
|
|
|
@ -9,7 +9,9 @@
|
||||||
.controller('TrafficChartCtrl', TrafficChartCtrl);
|
.controller('TrafficChartCtrl', TrafficChartCtrl);
|
||||||
|
|
||||||
/** @ngInject */
|
/** @ngInject */
|
||||||
function TrafficChartCtrl(layoutColors, $scope) {
|
function TrafficChartCtrl($scope, layoutColors, layoutTheme) {
|
||||||
|
|
||||||
|
$scope.transparent = layoutTheme.blur;
|
||||||
var palette = layoutColors.bgColorPalette;
|
var palette = layoutColors.bgColorPalette;
|
||||||
$scope.doughnutData = [
|
$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="chart-bg"></div>
|
||||||
<div class="traffic-chart" id="trafficChart">
|
<div class="traffic-chart" id="trafficChart">
|
||||||
<div class="canvas-holder">
|
<div class="canvas-holder">
|
||||||
|
|
Loading…
Reference in New Issue