fix daily chart
parent
3b935a4d20
commit
774e30c945
|
@ -156,7 +156,7 @@ const cCapacityDailyOptions = {
|
|||
},
|
||||
series: [{
|
||||
type: 'bar',
|
||||
data: {!! json_encode($cM['capacities']) !!}
|
||||
data: {!! json_encode($cD['capacities']) !!}
|
||||
}]
|
||||
},
|
||||
@endforeach
|
||||
|
@ -309,13 +309,18 @@ cTimeline.on('timelinechanged', (e) => {
|
|||
|
||||
// Set markpoint on linechart
|
||||
let x = cCapacityOptions.xAxis.data[e.currentIndex];
|
||||
let y = cCapacityOptions.series.data[e.currentIndex];
|
||||
let y = cCapacityOptions.series[0].data[e.currentIndex];
|
||||
|
||||
cCapacityMonthly.dispatchAction({
|
||||
type: 'timelineChange',
|
||||
currentIndex: e.currentIndex
|
||||
});
|
||||
|
||||
cCapacityDaily.dispatchAction({
|
||||
type: 'timelineChange',
|
||||
currentIndex: e.currentIndex
|
||||
});
|
||||
|
||||
cCalendar.dispatchAction({
|
||||
type: 'timelineChange',
|
||||
currentIndex: e.currentIndex
|
||||
|
|
Loading…
Reference in New Issue