Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
O

OXChart

> 编程语言
Open source

各种自定义图表库,使用简单,支持扩展

775 stars0 likes1 views
WebsiteGitHub

About

各种自定义图表库,使用简单,支持扩展

OXChart

  

自定义图标库,使用方便,扩展性强,后续会添加更多开发中使用到的图表

类库接入

build.gradle中添加依赖:

xml
    implementation 'com.openxu.viewlib:OXViewLib:'

指定java版本,否则会报错: android { ... compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 } ... }

图表使用

1、南丁格尔玫瑰图 NightingaleRoseChart

xml
…

2、占比饼状图表 PieChartLayout

xml

   
   
…

3、进度环形图 ProgressPieChart

xml
java
ProgressPieChart chart1 = (ProgressPieChart)findViewById(R.id.chart1);
chart1.setProSize(DensityUtil.dip2px(this, 5));  //圆环宽度
chart1.setLoading(false);
chart1.setProColor(Color.parseColor("#ff0000"));  //进度颜色
//环形中间显示的lable
List lables = new ArrayList<>();
lables.add(new ChartLable("60.0%",
        DensityUtil.sp2px(this, 12), Color.parseColor("#ff0000")));
lables.add(new ChartLable("完成率",
        DensityUtil.sp2px(this, 8), getResources().getColor(R.color.text_color_light_gray)));
chart1.setData(100, 60, lables);

4、纵向柱状图 BarVerticalChart

xml
…

5、横向柱状图 BarHorizontalChart

xml
…

Issues· 20 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Javaandroidchartview

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言