VSeed, an elegant data composer, transforming complexity into simplicity.
!!!###!!!title=React Lynx VChart——VisActor/VChart tutorial documents!!!###!!!!!!###!!!description=**[Note] The open-source version of Lynx currently does not provide canvas functionality, so vchart rendering is not supported at the moment. It will be supported in future versions, so stay tuned. [For more features, please visit the Lynx official website](https://lynxjs.org/)**Lynx is ByteDance's open-source high-performance cross-platform framework, which quickly builds native views based on the web technology stack. Lynx was officially open-sourced on March 5, 2025. ReactLynx is the React syntax version of Lynx. VChart, based on ByteDance's internal version ReactLynx3.0, provides chart rendering capabilities.!!!###!!!
ReactLynx
[Note] The open-source version of Lynx currently does not provide canvas functionality, so vchart rendering is not supported at the moment. It will be supported in future versions, so stay tuned. For more features, please visit the Lynx official website
Lynx is ByteDance's open-source high-performance cross-platform framework, which quickly builds native views based on the web technology stack. Lynx was officially open-sourced on March 5, 2025. ReactLynx is the React syntax version of Lynx. VChart, based on ByteDance's internal version ReactLynx3.0, provides chart rendering capabilities.
How to get Lynx-VChart
npm package
You can directly install the lynx-vchart dependency package (this package is an intranet package) in the ReactLynx project: @dp/lynx-vchart.
Unified chart tag
receives a complete spec as the chart definition, and its spec data structure is exactly the same as that of VChart, so developers can send any spec that is legal for VChart to Lynx-VChart for chart rendering.
onReady is a built-in callback event that is triggered when the chart is rendered or updated. Its input parameters represent the chart instance object and whether it is the first rendering.
For example, developers can register the callback events that need to be triggered on the chart instance during the first rendering to achieve chart interaction functions.
<VChartSimple />
The usage of this tag is similar to <VChart />. This tag supports the lazy loading feature of VChart. When using it, you need to configure an additional vchartConstructor field to pass in the VChart.
If you use a custom theme in VChart, you can achieve it in two ways, one is to define the theme in spec, and the other is to register the theme through ThemeManager. Because in Lynx-VChart, there is no need to reference the VChart npm package. Therefore, Lynx-VChart exposes the VChart base class, named VChartCore, which is convenient for developers to register custom themes on the VChart base class through static methods.
Refer to VChart Theme for VChart theme configuration.
Note that for the case of using VChart on demand, it is recommended to directly call the VChart API to use the theme.
Event Interaction
The top-level chart component, whether it is the unified chart label (VChart) or the syntax chart label (BarChart, etc.), supports the scene tree event EventsProps thrown by the underlying rendering layer on its Props.