在taro项目中集成EChart图表库
发布时间
阅读量:
阅读量
1、使用物料市场提供的封装好的组件
https://taro-ext.jd.com/plugin/view/5f648e4c0dd8313026e0942d
npm i echarts-taro3-react or yarn add echarts-taro3-react
2、折线图组件的运用与封装:
lineChart.js
import React, { Component } from 'react'
import { View } from '@tarojs/components'
import { EChart } from 'echarts-taro3-react'
import PropTypes from 'prop-types'
import './index.less'
/**
|--------------------------------------------------
| #Component
| 折线图组件
|--------------------------------------------------
*/
clas
全部评论 (0)
还没有任何评论哟~
