-
首先感谢博主的无私奉献
我的代码如下:
onLoad: function (options) {
var windowWidth = 0
try {
var res = wx.getSystemInfoSync();
windowWidth = res.windowWidth;
} catch (e) {
console…
-
wxml:
`
`
wxss:
canvas {
width: 100%;
height: 200px;
}
js:
var windowWidth = '';
var windowHeight = '';
try {
var res = wx.getSystemInfoSync();
windowWidth = r…
-
i instantiation it in 'ready' cycle,But it doesn't work properly。
in 'Page' It's normal.
-
linking to the example files in github, and going to your website leads to an empty html page. Id love to see some exsmples on how to use these charts
-
The wxWidgets Community intends to track list of maintained wx Libraries.
I would like to invite you comment on whether you think your component should be included or not.
See: https://forums.wxwidg…
-
![20190824_160929](https://user-images.githubusercontent.com/42028814/63636196-cc865980-c69e-11e9-84bc-22e36737291f.gif)
实现效果如图,可控x轴宽度,在scroll开启的情况下。
由于本人只使用了linechart,所以该功能在其他图表中是否能够正常使用,我并不清楚。
…
-
-
由于无法获取到`canvas`的大小尺寸,故图表工具需要调用者传入`width`和`height`来主动告知。
各类终端的屏幕大小有差异,如何来让wx-charts自适应屏幕的尺寸呢,下面给出一种方法。
比如我们的需求是图表横向铺满屏幕的宽度
`wxss`
```css
.canvas {
width: 100%;
height: 200px;
}
`…
-
![image](https://user-images.githubusercontent.com/29349504/99508648-cb39fe80-29bf-11eb-89e8-6c77dd5c7ab4.png)
图一
图二
![image](https://user-images.githubusercontent.com/29349504/99508879-12c08a80-…
-