Comments (7)
什么 template?
from echarts-for-weixin.
https://mp.weixin.qq.com/debug/wxadoc/dev/framework/view/wxml/template.html
from echarts-for-weixin.
我没有试过,直接用有什么问题吗?
from echarts-for-weixin.
直接用应该是可以的,但是我做的公司项目中,页面中内容太多了,就拆成了多个模块
from echarts-for-weixin.
理论上不需要用到模板,因为这个项目把 ECharts 图表封装成组件了。模板是小程序在支持自定义组件之前的解决方案,现在推荐用自定义组件搞
from echarts-for-weixin.
还有一个疑问就是,
data: { ec: { onInit: initChart } }
这样写,是不是说一个页面中,就只能有一个图表?不能有多个图表?
from echarts-for-weixin.
可以有多个图表的:
<ec-canvas id="mychart-dom-bar-1" canvas-id="mychart-bar-1" ec="{{ ec1 }}"></ec-canvas>
<ec-canvas id="mychart-dom-bar-2" canvas-id="mychart-bar-2" ec="{{ ec2 }}"></ec-canvas>
data: {
ec1: {
onInit: initChart1
},
ec2: {
onInit: initChart2
}
}
这样就行了。
from echarts-for-weixin.
Related Issues (20)
- 微信小程序是否支持echarts GL配置
- series的label的borderRadius显示有问题
- 5.4版本在android 手机中,选中地图或者其他饼图,会有一层阴影 HOT 4
- 版本5.4.x、5.3.x在小程序上双指缩放和放大都有问题,须退回到5.1.2版本才有效
- dataZoom
- line使用问题
- 微信小程序是否支持markArea和markLine
- 微信小程序中是否支持3D柱状图 HOT 1
- 小程序tooltip显示不全,formatter无法解析dom,应该怎么解决呢
- 小程序使用series-custom renderItem报错
- 小程序横屏现在支持了吗?
- 微信小程序 echarts tooltip设置extraCssText不生效
- 热力图数据量太大导致tootip失效
- 热力图数据量太大3万条以上点击显示tootip失效
- 结合echarts使用
- 微信小程序的tooltips卡顿问题有解决吗? HOT 2
- 柱形图和折线图,不能支持自定义样式
- 用import * as echarts from '../../../ec-canvas/ec-canvas';在js引入会报错APP-SERVICE-Engine:Please do not register multiple Pages in
- 使用markline中的coord控制台会报Cannot read property 'coord' of undefined,并且无法正常显示markline HOT 2
- 最新的官方版本支持了tooltip吗? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from echarts-for-weixin.