New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

echarts12

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

echarts12

> 这是一个不需要额外配置,安装即可以使用的 Taro Echarts 组件。echarts12 名字本来是测试一下使用的,结果忘记 `unpublish` 了。目前可以正常使用。

  • 1.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-80%
Maintainers
1
Weekly downloads
 
Created
Source

这是一个不需要额外配置,安装即可以使用的 Taro Echarts 组件。echarts12 名字本来是测试一下使用的,结果忘记 unpublish 了。目前可以正常使用。

图表组件

该项目只是一个 Taro Component,ec-canvas 参考 echarts-for-weixin https://github.com/ecomfe/echarts-for-weixin

安装依赖

    yarn add echarts12

使用方法

    // 方式一
    import Echart from 'echarts12'
    // 方式二
    import { Echart } from 'echarts12'

    <Echart option={ option } />

参数解释

属性名说明必选
option同 echarts 的 option 配置
ec控制是否延迟加载以及事件禁止,默认 { lazyLoad: false, disableTouch: true }
onInit初始化回调函数,参数为 chart ,可以通过 chart 做事件绑定等操作
style自定义样式,例如可以修改默认 200 的 height

其它

wepy 中如何使用?

原生小程序 中如何使用?

压缩 echarts.js(可选)

taro/config/index.js

    copy: {
        patterns: [
            {
                from: 'ecahrts.js',
                to: `dist/npm/echarts12/dist/${process.env.TARO_ENV}/components/echart/echarts.js`,
            }
        ],
        options: {}
    }

支持情况

微信小程序h5

Keywords

FAQs

Package last updated on 04 Jan 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc