VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=Cross-end Instructions——VisActor/VChart tutorial documents!!!###!!!!!!###!!!description=For the various cross-end environments currently on the market (mainly node, various mini-programs, etc.), the underlying rendering engine VRender of VChart has aggregated and smoothed the API differences in each environment. Therefore, at the VChart level, users only need to configure the `mode` parameter when creating a `new VChart` instance to determine which environment to use.Here is the parameter configuration for the mini-program environment:```tsconst chartInstance = new VChart(spec, { mode: 'miniApp', // mini-program environment // Some necessary parameters to pass in this environment modeParams: { domref, // canvas component instance on the mini-program force: true, canvasIdLists: [`${this.data.canvasId}_draw_canvas`, `${this.data.canvasId}_tooltip_canvas`], // Pass in the created canvas component id tooltipCanvasId: `${this.data.canvasId}_tooltip_canvas`, // The canvas id for drawing tooltip, using canvas tooltip in the mini-program environment freeCanvasIdx: 1 }, dpr: pixelRatio, renderCanvas: `${this.data.canvasId}_draw_canvas`});```!!!###!!!
Cross-end Instructions
For the various cross-end environments currently on the market (mainly node, various mini-programs, etc.), the underlying rendering engine VRender of VChart has aggregated and smoothed the API differences in each environment. Therefore, at the VChart level, users only need to configure the mode parameter when creating a new VChart instance to determine which environment to use.
Here is the parameter configuration for the mini-program environment:
The mode value for Feishu Widgets, Feishu Mini Programs and Byte Mini Programs is miniApp, and for lynx it is lynx. The modeParams configuration is consistent.
For specific usage, please refer to the respective tutorials:
In addition, other mini-programs, such as WeChat Mini Programs, are also in our compatibility plan and will be available soon.
Unsupported Chart Features in Mini Programs
Since version 1.6.0, 3D charts and sequence chart will no longer be supported by default in Feishu widgets, Feishu Mini Programs, ByteDance Mini Programs, and WeChat Mini Programs.