| | |
| | | methods: { |
| | | onSubmit () { |
| | | console.log('submit!') |
| | | this.CreateChart(this.JsonDayCharts.id, this.JsonDayCharts.title, this.JsonDayCharts.legend, this.JsonDayCharts.xdata, this.JsonDayCharts.ydatas, this.JsonDayCharts.yname, this.JsonDayCharts.id, this.JsonDayCharts.datatype) |
| | | this.CreateCharts(this.JsonDayCharts.id, this.JsonDayCharts.title, this.JsonDayCharts.legend, this.JsonDayCharts.xdata, this.JsonDayCharts.ydatas, this.JsonDayCharts.yname, this.JsonDayCharts.id, this.JsonDayCharts.datatype) |
| | | }, |
| | | |
| | | CreateChart: function (id, title, legend, xdata, ydatas, yname, jcdID, datatype) { |
| | | CreateCharts: function (id, title, legend, xdata, ydatas, yname, jcdID, datatype) { |
| | | this.mychartDay = this.$echarts.init(this.$refs.main) |
| | | this.mychartDay.clear() |
| | | var dataUnit = '' |
| | |
| | | }, |
| | | grid: { // 网格 |
| | | top: '20%', |
| | | left: '5%' |
| | | left: '12%', |
| | | bottom: '15%' |
| | | // containLabel: true |
| | | }, |
| | | legend: { // 图例 |