upgrade dep: echarts@5.x

This commit is contained in:
Baorong Li
2021-03-17 17:28:05 +08:00
parent 0e36b6b7a0
commit b1f290ea32
10 changed files with 61 additions and 15 deletions
@@ -1,7 +1,7 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
require('echarts/map/js/china.js')
require('./map/js/china.js')
const AirportCoordComponent = () => {
let geoCoordMap = {
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const currentData = [
[
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const CalendarComponent = () => {
const getVirtulData = year => {
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const GCalendarComponent = () => {
const getVirtulData = year => {
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const LunarCalendarComponent = () => {
const getOtion = () => {
+1 -1
View File
@@ -1,7 +1,7 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
require('echarts/map/js/china.js')
require('./map/js/china.js')
class MapChartComponent extends React.Component {
constructor() {
@@ -1,7 +1,7 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const ThemeChartComponent = () => {
const option = {
+1 -1
View File
@@ -1,6 +1,6 @@
import React from 'react'
import ReactEcharts from 'echarts-for-react'
import echarts from 'echarts'
import * as echarts from 'echarts'
const TreemapComponent = () => {
let diskData = [
File diff suppressed because one or more lines are too long