- 小程序canvas绘制图表异常,只有第一个数据点,数据有但是不显示,咋整?大佬帮帮我吧。
/** @type {string[]} */ const colors = [] series.forEach((item) => { const val = item?.[0]?.[1] if (val) { colors.push(getRingColor(val)) } }) 上周五还是周六突然出现的问题,uniapp的小程序。 如果用这种形式就能显示。用渐变色就不能显示图表信息。 [图片] 不能显示的是这个 color: { type: 'linearGradient', color: [ { p: 0, c: '#FF64B4' }, { p: 1, c: '#A94CFF' }, ],}, 还有报错可以看看,ctx是canvas生成的。 TypeError: Cannot read property 'x' of undefined at P (VM26693 ctx.js:70) at Object.L [as getColor] (VM26693 ctx.js:81) at VM26695 draw-bar.js:124 at Array.forEach () at VM26695 draw-bar.js:94 at Array.forEach () at _callee$ (VM26695 draw-bar.js:90) at s (VM26651 regeneratorRuntime.js:1) at Generator. (VM26651 regeneratorRuntime.js:1) at Generator.next (VM26651 regeneratorRuntime.js:1)
03-14 - Java开发APP微信登录接口怎么获取用户昵称和头像?
我是用的jar包调用微信接口。现在是怎么获取用户昵称和头像的?不是小程序那个方式userService.getUserInfo
2024-09-05