当前位置:网站首页>小程序-小程序图表库(F2图表库)
小程序-小程序图表库(F2图表库)
2022-07-01 13:25:00 【西京刀客】
小程序图表库
f2
F2 的支付宝小程序版本(待支付宝支持自定义组件后,会基于此库提供一个支付宝小程序的组件)。
github:https://github.com/antvis/my-f2mini-chart
支付宝小程序图表库mini-chart
和上面小程序版本不同之处在于,my-f2是用f2的方式较为自定义底层地绘制,而mini-chart是封装成了自定义组件的形式,在使用上要简单些。
github:https://github.com/ant-mini-program/mini-chartnpm:https://developer.aliyun.com/mirror/npm/package/mini-chart
总结: 一般使用,我们使用mini-chart即可。
pie 饼图
官网参考:
github:https://github.com/ant-mini-program/mini-chart
https://developer.aliyun.com/mirror/npm/package/mini-chart
钉钉小程序图表刷新 antv-f2
官网:https://antv-f2.gitee.io/zh/docs/tutorial/manual/miniprogram
原文链接:https://blog.csdn.net/hthereal/java/article/details/103833182
公司有项目拟在钉钉小程序中实现部分功能,其中需要图表展示,经过与echart的比较,最终选择了阿里系的 F2,f2宣传的是“专注于移动,兼容多种环境(Node, 小程序,Weex)”,且有相关支持的文档,没有看到echart对阿里系的小程序支撑。
在钉钉小程序项目目录下,执行如下命令,引入 my-f2
npm install @antv/my-f2
或者 直接引用f2的插件,按官网来,官网已插件引入(F2 的支付宝小程序版本,支持原生 F2 的所有功能,欢迎使用反馈。)
参考官网:https://github.com/antvis/my-f2/blob/master/README.md
F2基础
官网:https://f2.antv.vision/zh/docs/api/f2
当引入 F2 之后,就可以使用全局命名空间 F2。
F2.version // 当前 F2 的版本号
类 Classes
F2.Chart:图表的入口类
F2.G:底层绘图引擎(基于原生的 Html5 Canvas 接口封装)
F2.Shape:F2 Shape 图形扩展接口,用于自定义各种几何标记的 shape
F2.Global:F2 的全局配置,包含图表的皮肤样式
F2.Util:辅助类工具函数
边栏推荐
- 2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
- Listen in the network
- Report on the current situation and development trend of bidirectional polypropylene composite film industry in the world and China Ⓟ 2022 ~ 2028
- 【241. 为运算表达式设计优先级】
- IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
- 9. Use of better scroll and ref
- Professor Li Zexiang, Hong Kong University of science and technology: I'm wrong. Why is engineering consciousness more important than the best university?
- In the next stage of digital transformation, digital twin manufacturer Youyi technology announced that it had completed a financing of more than 300 million yuan
- 当你真的学会DataBinding后,你会发现“这玩意真香”!
- Reasons for MySQL reporting 1040too many connections and Solutions
猜你喜欢
Simple two ball loading
Spark source code (V) how does dagscheduler taskscheduler cooperate with submitting tasks, and what is the corresponding relationship between application, job, stage, taskset, and task?
When you really learn databinding, you will find "this thing is really fragrant"!
2022上半年英特尔有哪些“硬核创新”?看这张图就知道了!
陈宇(Aqua)-安全->云安全->多云安全
终端识别技术和管理技术
Meta enlarge again! VR new model posted on CVPR oral: read and understand voice like a human
Fiori 应用通过 Adaptation Project 的增强方式分享
介绍一种对 SAP GUI 里的收藏夹事务码管理工具增强的实现方案
6年技术迭代,阿里全球化出海&合规的挑战和探索
随机推荐
Jenkins+webhooks- multi branch parametric construction-
Build a vc2010 development environment and create a tutorial of "realizing Tetris game in C language"
The stack size specified is too small, specify at least 328k
学历、长相、家境普通的人,未来的发展方向是什么?00后的职业规划都已经整得明明白白......
Nexus builds NPM dependent private database
Simplex, half duplex, full duplex, TDD and FDD
IO的几种模型 阻塞,非阻塞,io多路复用,信号驱动和异步io
China NdYAG crystal market research conclusion and development strategy proposal report Ⓥ 2022 ~ 2028
Judea pearl, Turing prize winner: 19 causal inference papers worth reading recently
04-Redis源码数据结构之字典
受益互联网出海 汇量科技业绩重回高增长
Sign APK with command line
单工,半双工,全双工区别以及TDD和FDD区别
leetcode 322. Coin change (medium)
Colorful five pointed star SVG dynamic web page background JS special effect
波浪动画彩色五角星loader加载js特效
About fossage 2.0 "meta force meta universe system development logic scheme (details)
用命令行 给 apk 签名
During Oracle CDC data transmission, the CLOB type field will lose its value during update. There is a value before update, but
机器学习总结(一):线性回归、岭回归、Lasso回归