!!!###!!!title=Harmony VChart Introduction——VisActor/VChart Contributing Documents!!!###!!!!!!###!!!description=---title: 14.7.1 Harmony-VChart Introduction key words: VisActor,VChart,VTable,VStrory,VMind,VGrammar,VRender,Visualization,Chart,Data,Table,Graph,Gis,LLM---!!!###!!!

Overview

harmony-vchart is the HarmonyOS encapsulated version of VChart, providing a version of VChart encapsulated for the HarmonyOS environment.

Core Code Structure

The core implementation of the harmony-vchart package consists of two parts:

  • Harmony environment-related adaptation:

  • The component encapsulation logic for the Harmony environment is located in the packages/harmony_vchart/library/src/main/ets/ChartComponent.ets directory, which includes components encapsulated based on the Harmony environment.

  • Event compatibility logic is in the packages/harmony_vchart/library/src/main/ets/event.ets directory.

  • Animation Ticker logic is in the packages/harmony_vchart/library/src/main/ets/ticker.ets directory.

  • VChart products: The capabilities related to the vchart chart library directly reference the packaged products of VChart, and their content is stored in packages/harmony_vchart/library/src/main/ets/index-harmony.es.min.js.

In the following chapters, we will analyze the encapsulation of the Harmony-VChart component in detail.

This document was revised and organized by the following personnel

Xuanhun