|
|
|
@ -16,7 +16,7 @@ const horizontalBarChart = (res, ids) => {
|
|
|
|
|
const xValue = res.map(val => val.xValue)
|
|
|
|
|
const yValue = res.map(val => val.yValue)
|
|
|
|
|
|
|
|
|
|
//参考:https://www.makeapie.com/editor.html?c=xqjNqqjc_U
|
|
|
|
|
|
|
|
|
|
let seriesName = "产量";
|
|
|
|
|
|
|
|
|
|
let attackSourcesColor = [
|
|
|
|
@ -54,10 +54,7 @@ const horizontalBarChart = (res, ids) => {
|
|
|
|
|
let stationData = [];
|
|
|
|
|
let values = [];
|
|
|
|
|
|
|
|
|
|
// res.forEach(function (it, index) {
|
|
|
|
|
// stationData.push(it.station);
|
|
|
|
|
// values.push(it.value);
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function dataFormat(data) {
|
|
|
|
|
let arr = [];
|
|
|
|
@ -82,7 +79,7 @@ const horizontalBarChart = (res, ids) => {
|
|
|
|
|
},
|
|
|
|
|
grid: {
|
|
|
|
|
top: "9%",
|
|
|
|
|
left: "-9%",
|
|
|
|
|
left: "-30%",
|
|
|
|
|
right: "4%",
|
|
|
|
|
bottom: "3%",
|
|
|
|
|
containLabel: true,
|
|
|
|
@ -344,7 +341,6 @@ const threeDimensionalCylindrical = (res, ids) => {
|
|
|
|
|
let mycharts = echarts.init(ids);
|
|
|
|
|
const xValue = res.map(val => val.materialName)
|
|
|
|
|
const yValue = res.map(val => val.lineStoreAmount)
|
|
|
|
|
|
|
|
|
|
let barTopColor = ["#02c3f1"];
|
|
|
|
|
let barBottomColor = [
|
|
|
|
|
"rgba(2,195,241,0.1)",
|
|
|
|
|