-
#@xiaolin3303 当option.series长度为0时,此处会无限循环 ,num % limit 的值为NaN
##
`function findRange(num, type, limit) {
if (isNaN(num)) {
throw new Error('[wxCharts] unvalid series data!');
}
limi…
ghost updated
5 years ago
-
例如单序列的柱状图,想让每根柱子都能设置不同的颜色该如何做到呢?我发现ECharts可以将color设置为function函数来做到,但是用wxcharts试了一下发现没效果,是不是有不同的设置方法或者没有这个功能呢?
-
wx-charts 柱状图categories超过24 enableScroll=true,x轴显示不全
-
`//js此处画图
let windowWidth = 320
try {
let res = wx.getSystemInfoSync()
windowWidth = res.windowWidth
le…
-
![qq 20170609110607](https://user-images.githubusercontent.com/28530058/27113014-f0ff3446-50ec-11e7-8710-f46afec06e46.png)
-
设置canvas背景色为蓝色`.canvas {
width: 100%;
height: 200px;
background:blue;
}`
设置页面背景色为黑色`page{
background-color: rgb(0, 0, 0);
}`
此时发现wx-charts右边存在一个长方形小区域无法设置颜色(如图中箭头指示区域),依然为白色,柱状…
-
HI,
The following traceback occurs after pressing the "Change Chart" button.
Traceback (most recent call last):
File "wxcharts.py", line 281, in on_change_chart
BaseChart('Line chart', 'x'…
-
在自定义组件中canvas组件注册无效,这个因为createCanvasContext方法是有两个参数,在page页面默认传了一个this,在组件里面需要手动传this。
所以修改一下才可以在自定义组件中使用,
this.context = wx.createCanvasContext(opts.canvasId, opts.that);
-
![image](https://user-images.githubusercontent.com/41905866/62991029-a7187500-be80-11e9-8c5f-e23bd98541e4.png)
这个雷达图上的数据类别分类字体太小了,怎么变大啊,在参数列表没有看到相关参数
-