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

MPAndroidChart-Realm

> 编程语言
Open source

http://realm.io related features of the MPAndroidChart library.

194 stars0 likes0 views
WebsiteGitHub

About

http://realm.io related features of the MPAndroidChart library.

This repository contains all Realm.io related features of the MPAndroidChart library based on Realm v4.2.0 release.

Getting Started

  • To use this library, add the following to your project level build.gradle:
gradle
allprojects {
	repositories {
		maven { url "https://jitpack.io" }
	}
}
  • Add this to your app build.gradle:
gradle
dependencies {
	implementation 'com.github.PhilJay:MPAndroidChart-Realm:v3.0.3@aar'
	implementation 'com.github.PhilJay:MPAndroidChart:v3.0.3'
}

The MPAndroidChart-Realm dependency does not include the latest MPAndroidChart release, so you have to add the dependency to MPAndroidChart as well (as shown above). You also have to add the Realm.io dependency.

Sample

Using MPAndroidChart with Realm.io is easier than you think.

java
// get realm instance
Realm realm = Realm.getDefaultInstance();

// load your data from Realm.io database
RealmResults results = realm.where(YourData.class).findAll();

// create a DataSet and specify fields, MPAndroidChart-Realm does the rest
RealmBarDataSet dataSet = new RealmBarDataSet(results, "xValue", "yValue");

// create a data object with the dataset 
BarData data = new BarData(dataSet);
chart.setData(data);
chart.invalidate(); // refresh

Tutorial

Here, you can find a full guide on how to plot data from Realm.io database with MPAndroidChart from scratch.

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Java

No comments yet. Be the first to share.

> Details

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

> Related tools

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