Add regions to separate past and future operations.
This commit is contained in:
parent
003ad498db
commit
2e6bc006f5
@ -67,6 +67,8 @@ var balanceChartModule = angular.module('balanceChartModule', [
|
|||||||
};
|
};
|
||||||
|
|
||||||
vm.$onInit = function() {
|
vm.$onInit = function() {
|
||||||
|
var tomorrow = moment().endOf('day').valueOf();
|
||||||
|
|
||||||
vm.chart = c3.generate({
|
vm.chart = c3.generate({
|
||||||
bindto: $element[0].children[0],
|
bindto: $element[0].children[0],
|
||||||
size: {
|
size: {
|
||||||
@ -85,8 +87,20 @@ var balanceChartModule = angular.module('balanceChartModule', [
|
|||||||
},
|
},
|
||||||
groups: [
|
groups: [
|
||||||
['expenses', 'revenues']
|
['expenses', 'revenues']
|
||||||
]
|
],
|
||||||
|
// Disable for the moment because there is an issue when
|
||||||
|
// using subchart line is not refreshed after subset
|
||||||
|
// selection.
|
||||||
|
//regions: {
|
||||||
|
// balances: [{
|
||||||
|
// start: tomorrow,
|
||||||
|
// style: 'dashed'
|
||||||
|
// }]
|
||||||
|
//}
|
||||||
},
|
},
|
||||||
|
regions: [{
|
||||||
|
start: tomorrow,
|
||||||
|
}],
|
||||||
axis: {
|
axis: {
|
||||||
x: {
|
x: {
|
||||||
type: 'timeseries',
|
type: 'timeseries',
|
||||||
|
Loading…
Reference in New Issue
Block a user