修改数据请求

master
夜笙歌 4 years ago
parent a363af9f45
commit c8fb10d359

@ -419,12 +419,12 @@
autoUpdate('/broad/box/selectOutputByType', INTERVAL, data => { autoUpdate('/broad/box/selectOutputByType', INTERVAL, data => {
statByType.setOption({ statByType.setOption({
xAxis: { xAxis: {
data: data['xAxisInfo'].map(value => value), data: data.map(value => value.name),
}, },
series: [ series: [
{ {
name: '数量', name: '数量',
data: data['seriesInfo'], data: data.map(value => value.qty),
}, },
// { // {
// name: '数量_', // name: '数量_',
@ -505,7 +505,8 @@
{ {
type: 'category', type: 'category',
axisTick: { axisTick: {
alignWithLabel: true alignWithLabel: true,
interval:0,
}, },
axisLabel: { axisLabel: {
color: '#ffffff', color: '#ffffff',

Loading…
Cancel
Save