( x, y, multiQuota, multiQuotaName = 'sqlbot_auto_series', data, )
| 65 | } |
| 66 | |
| 67 | function processMultiQuotaData( |
| 68 | x, |
| 69 | y, |
| 70 | multiQuota, |
| 71 | multiQuotaName = 'sqlbot_auto_series', |
| 72 | data, |
| 73 | ) { |
| 74 | const _list = [] |
| 75 | const _map = {} |
| 76 | y.forEach((axis) => { |
| 77 | _map[axis.value] = axis.name |
| 78 | }) |
| 79 | for (const datum of data) { |
| 80 | multiQuota.forEach((quota) => { |
| 81 | const _data = {} |
| 82 | for (const xAxis of x) { |
| 83 | _data[xAxis.value] = datum[xAxis.value] |
| 84 | } |
| 85 | _data['sqlbot_auto_quota'] = datum[quota] |
| 86 | _data['sqlbot_auto_series'] = _map[quota] |
| 87 | _list.push(_data) |
| 88 | }) |
| 89 | } |
| 90 | |
| 91 | return { |
| 92 | data: _list, |
| 93 | y: [{ name: 'sqlbot_auto_quota', value: 'sqlbot_auto_quota', type: 'y' }], |
| 94 | series: [{ name: multiQuotaName, value: 'sqlbot_auto_series', type: 'series' }], |
| 95 | } |
| 96 | } |
| 97 | |
| 98 | function checkIsPercent(valueAxes, data) { |
| 99 | const result = { |
no test coverage detected