Comments (6)
顺便还有一个问题,怎样动态修改图表内的数据?在函数外怎么拿到chart实例
from echarts-for-weixin.
具体是什么错?精简一下代码,方便定位
from echarts-for-weixin.
报了很多错,能帮忙看一下这个哪里有错吗?
var option = {
title: {
},
// tooltip: {
// },
legend: {
},
grid: {
left: 48,
right: 10,
top: 30,
bottom: 48
},
xAxis: {
data: [],
axisLine: {
lineStyle: {
color: '#fff'
}
},
axisTick: {
show: false,
alignWithLabel: true
},
axisPointer: {
show: true,
label: {
show: false,
backgroundColor: '#3C414F'
}
},
axisLabel: {
formatter: (n, i) => {
if (/^\d{4}-\d{2}-\d{2} \d{2}$/g.test(n)) {
// 2017-12-27 15
return n.replace(/\d{4}-(\d{2}-\d{2} \d{2})/g, '$1')
} else if (/^\d{4}-\d{2}-\d{2}$/g.test(n)) {
// 2017-12-27
return n.replace(/\d{4}-(\d{2}-\d{2})/g, '$1')
}
}
}
},
yAxis: {
axisLine: {
lineStyle: {
color: '#fff'
}
},
axisTick: {
show: false
},
splitLine: {
show: false
}
},
backgroundColor: '#262932',
series: [{
name: '声量',
type: 'line',
smooth: true,
symbolSize: 4,
lineStyle: {
normal: {
color: '#F7B24F',
width: 3
}
},
itemStyle: {
normal: {
opacity: 0
}
},
data: []
}]
};
from echarts-for-weixin.
我这没报错,你是否在微信开发者工具中将详情的基础库版本设到 1.9.91 了呢?
from echarts-for-weixin.
原来是因为我用的1.9.1。。。 →_→
from echarts-for-weixin.
更新了例子,参见柱状图
from echarts-for-weixin.
Related Issues (20)
- 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
- TypeError: Image is not a constructor HOT 1
- 有支持 Skyline 模式的计划吗?目前有点小问题 HOT 2
- 两个页面的echarts,一个页面滑动跳转到另一个页面,这个页面的echarts也跟着动到了上个页面echarts滑动到的位置
- 我想用旧版本的该怎么办
- series折线图 symbolSize的样式不正常 HOT 1
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.