Skip to content

Commit

Permalink
fix(dashboard): use variables for line color chart
Browse files Browse the repository at this point in the history
  • Loading branch information
KostyaDanovsky committed May 13, 2016
1 parent f0b6c1b commit 1d58c6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@
.controller('DashboardLineChartCtrl', DashboardLineChartCtrl);

/** @ngInject */
function DashboardLineChartCtrl(layoutColors, layoutPaths) {
function DashboardLineChartCtrl(layoutColors, layoutPaths, baUtil) {
var graphColor = layoutColors.primary;
var chartData = [
{ date: new Date(2012, 11), value: 0, value0: 0 },
{ date: new Date(2013, 0), value: 15000, value0: 19000},
{ date: new Date(2013, 1), value: 30000, value0: 20000},


{ date: new Date(2013, 2), value: 25000, value0: 22000},
{ date: new Date(2013, 3), value: 21000, value0: 25000},
{ date: new Date(2013, 4), value: 24000, value0: 29000},
Expand Down Expand Up @@ -69,7 +69,7 @@
id: 'g0',
bullet: 'none',
useLineColorForBulletBorder: true,
lineColor: 'rgba(0, 0, 0, 0.3)',
lineColor: baUtil.hexToRGB(graphColor, 0.3),
lineThickness: 1,
negativeLineColor: layoutColors.danger,
type: 'smoothedLine',
Expand All @@ -81,7 +81,7 @@
id: 'g1',
bullet: 'none',
useLineColorForBulletBorder: true,
lineColor: 'rgba(0, 0, 0, 0.4)',
lineColor: baUtil.hexToRGB(graphColor, 0.5),
lineThickness: 1,
negativeLineColor: layoutColors.danger,
type: 'smoothedLine',
Expand Down
15 changes: 0 additions & 15 deletions src/app/pages/dashboard/popularApp/popularApp1.js

This file was deleted.

0 comments on commit 1d58c6f

Please sign in to comment.