Skip to content

Commit

Permalink
Styles the chart.
Browse files Browse the repository at this point in the history
  • Loading branch information
theopak committed Nov 27, 2014
1 parent 5c7c23a commit 267929f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
12 changes: 10 additions & 2 deletions app/scripts/controllers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -566,11 +566,19 @@ app.controller('MainCtrl', ['$scope', '$http', 'globalService', 'RainfallSeriesP
x: {
type: 'timeseries',
tick: {
count: 12,
format: '%b' // d3.date.format() specifier. '%b' is abbreviated month, '%B' is full month name.
count: 12, // 12 months in the year.
culling: false, // don't cull (ie, select) the number of ticks. show them all!
fit: true, // fit to size.
format: '%b' // d3.date.format() specifier. '%b' is abbreviated month, '%B' is full month name.
}
},
y: {
tick: { format: d3.format(',') }
}
},
grid: {
y: { show: true }
},
legend: { position: 'right' },
type: 'area-step'
};
Expand Down
5 changes: 5 additions & 0 deletions app/styles/view.scss
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,9 @@ path.graticule {
.administrative { opacity: 0.10; }
.administrative-selected { opacity: 0.60; }
.administrative:hover { opacity: 0.85; }

// Chart
.c3-axis-y > path,
.c3-axis-y line {
visibility: hidden;
}

0 comments on commit 267929f

Please sign in to comment.