npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

weex-plugin-weex-chart

v0.3.2

Published

A chart component for weex

Downloads

6

Readme

简介

图表插件是通过g2-mobile依赖gcanvas插件实现的

如何用weexpack命令安装使用

目前图表和gcanvas插件已经上传weex插件市场,可以通过weexpack plugin命令安装使用

1.安装weexpack

npm install -g weexpack

2.创建工程,比如myproj

weexpack create myproj

3.创建运行平台

cd myproj & weexpack platform add ios (需要android 则 weexpack platform add android)

4.添加图表插件

weexpack plugin add weex-chart (会检测到依赖插件并自动添加)

5.编译和运行demo

把demo文件(位于本repo的 examples/下的所有文件 你可以clone一下)拷贝到项目工程目录的src下,然后:

然后使用命令:weexpack run ios (android) 可在模拟器或者device上运行

用法及说明

<chart id="c1" width="750" height="400"></chart>
var G2=require('weex-chart')('g2');//使用g2这个chart 目前只支持g2-mobile
module.exports={
        ready:function(){
            var chart = new GM.Chart({
                    id: 'c1'
            });
            ...
            chart.render()
        }
}

G2-mobile语法请参照 g2-mobile 不支持内容 由于g2-mobile是给浏览器页面设计的 weex环境与浏览器环境有较大差异 因此一些g2-mobile的功能暂时无法支持,主要如下

  • animate 动画
  • guide 辅助线

如果您发现有别的特性或者api 无法支持 或者支持不好 请提交issue 谢谢

changelog

支持weex sdk 0.10.0