# Graphview **Repository Path**: HarmonyOS-tpc/Graphview ## Basic Information - **Project Name**: Graphview - **Description**: 折线图/圆点图/柱状图 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 4 - **Forks**: 0 - **Created**: 2021-04-15 - **Last Updated**: 2024-05-29 ## Categories & Tags **Categories**: harmonyos-chart **Tags**: None ## README # GraphView_openharmony ### 折线图/圆点图/柱状图 ![image](image/demo1.gif) ## 安装说明 Method 1:For using Graphview module in sample app ,add the below dependency to generate hap/har,Modify entry/build.gradle as below: dependencies { implementation fileTree(dir: 'libs', include: ['*.jar','*.har']) testCompile'junit:junit:4.12' implementation project(':graphveiw') } Method 2:For using Graphview in separate application using har file ,generate .har package through library and add the har file to the entry/libs folder.Modify entry/build.gradle as below: implementation fileTree(dir: 'libs', include: ['*.jar','*.har']) Method 3:For using Graphview in separate application using maven dependency,modify entry/build.gradle as below: dependencies { implementation 'io.openharmony.tpc.thirdlib:graphView-library:1.0.3' } ## 使用说明 #### 一.GraphView 介绍 GraphView graph = (GraphView) findComponentById(ResourceTable.Id_graphView); LineGraphSeries series = new LineGraphSeries(new DataPoint[] { new DataPoint(0, 1), new DataPoint(1, 5), new DataPoint(2, 3), new DataPoint(3, 2), new DataPoint(4, 6) }); graph.addSeries(series); #### 二.GraphViewXML 自定义介绍 ```