All Projects → hadiidbouk → Chartprogressbar Android

hadiidbouk / Chartprogressbar Android

Licence: apache-2.0
Draw a chart with progress bar style

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to Chartprogressbar Android

Widgetcase
自定义控件模块库:各种风格的自定义控件,拿来就用,API文档详细,持续集成,长期维护,有问必答;
Stars: ✭ 440 (+106.57%)
Mutual labels:  chart, progressbar
LimitlessUI
Awesome C# UI library that highly reduced limits of your application looks
Stars: ✭ 41 (-80.75%)
Mutual labels:  chart, progressbar
Orgchart
It's a simple and direct organization chart plugin. Anytime you want a tree-like chart, you can turn to OrgChart.
Stars: ✭ 2,325 (+991.55%)
Mutual labels:  chart
Squid
A Ruby library to plot charts in PDF files
Stars: ✭ 205 (-3.76%)
Mutual labels:  chart
Tkradarchart
A customizable radar chart in Swift
Stars: ✭ 199 (-6.57%)
Mutual labels:  chart
Visx
🐯 visx | visualization components
Stars: ✭ 14,544 (+6728.17%)
Mutual labels:  chart
Sprite
🖌 Draw charts in code. Render in real-time. Embed anywhere as .png.
Stars: ✭ 201 (-5.63%)
Mutual labels:  chart
Plotjuggler
The Time Series Visualization Tool that you deserve.
Stars: ✭ 2,620 (+1130.05%)
Mutual labels:  chart
Defterp
deftERP - Jakarta EE (Java EE 7 : JSF, JPA, EJB, CDI, Bean Validation)
Stars: ✭ 207 (-2.82%)
Mutual labels:  chart
Progress dialog
A light weight library to easily manage a progress dialog with simple steps whenever you need to do it. You can easily show and hide it.
Stars: ✭ 196 (-7.98%)
Mutual labels:  progressbar
Angular Highcharts
Highcharts directive for Angular
Stars: ✭ 202 (-5.16%)
Mutual labels:  chart
Jira Dependency Graph
Graph visualizer for JIRA tickets' dependencies
Stars: ✭ 194 (-8.92%)
Mutual labels:  chart
V Chart Plugin
Easily bind a chart to the data stored in your Vue.js components.
Stars: ✭ 188 (-11.74%)
Mutual labels:  chart
Wxapp Charts
🏹微信小程序图表charts组件
Stars: ✭ 201 (-5.63%)
Mutual labels:  chart
Tui.editor
🍞📝 Markdown WYSIWYG Editor. GFM Standard + Chart & UML Extensible.
Stars: ✭ 14,016 (+6480.28%)
Mutual labels:  chart
Meter
Laravel package to find performance bottlenecks in your laravel application.
Stars: ✭ 204 (-4.23%)
Mutual labels:  chart
Downloader Cli
A simple downloader written in Python with an awesome customizable progressbar.
Stars: ✭ 186 (-12.68%)
Mutual labels:  progressbar
Charts
⚡ Laravel Charts — Build charts using laravel. The laravel adapter for Chartisan.
Stars: ✭ 2,337 (+997.18%)
Mutual labels:  chart
Swiftcharts
Easy to use and highly customizable charts library for iOS
Stars: ✭ 2,336 (+996.71%)
Mutual labels:  chart
Vue Morris
VueJS component wrapping Morris.js
Stars: ✭ 212 (-0.47%)
Mutual labels:  chart

ChartProgressBar

Draw a chart with progress bar style - the ios version here

Installation

Add jitpack to your build.gradle (project) :

allprojects {
		repositories {
			...
			maven { url 'https://jitpack.io' }
		}
	}

Add the dependency to your build.gradle (app) :

 compile 'com.github.hadiidbouk:ChartProgressBar-Android:2.0.6'

Usage

  1. Add ChartProgressBar to your layout :
<com.hadiidbouk.charts.ChartProgressBar
		android:id="@+id/ChartProgressBar"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:layout_centerInParent="true"
		android:gravity="center"
		app:hdBarCanBeClick="true"
		app:hdBarHeight="170dp"
		app:hdBarWidth="7dp"
		app:hdBarRadius="10dp"
		app:hdMaxValue="10"
		app:hdEmptyColor="@color/empty"
		app:hdProgressColor="@color/progress"
		app:hdProgressClickColor="@color/progress_click"
		app:hdPinBackgroundColor="@color/pin_background"
		app:hdPinTextColor="@color/pin_text"
		app:hdPinPaddingBottom="5dp"
		app:hdBarTitleColor="@color/bar_title_color"
		app:hdBarTitleTxtSize="12sp"
		app:hdPinTxtSize="17sp"
		app:hdPinMarginTop="10dp"
		app:hdPinMarginBottom="55dp"
		app:hdPinMarginEnd="22dp"
		app:hdBarTitleMarginTop="9dp"
		app:hdPinDrawable="@drawable/ic_pin"
		app:hdProgressDisableColor="@color/progress_disable"
		app:hdBarTitleSelectedColor="@color/bar_title_selected_color"/>
  1. Add your Data to the chart :
		ArrayList<BarData> dataList = new ArrayList<>();

		BarData data = new BarData("Sep", 3.4f, "3.4€");
		dataList.add(data);

		data = new BarData("Oct", 8f, "8€");
		dataList.add(data);

		data = new BarData("Nov", 1.8f, "1.8€");
		dataList.add(data);

		data = new BarData("Dec", 7.3f, "7.3€");
		dataList.add(data);

		data = new BarData("Jan", 6.2f, "6.2€");
		dataList.add(data);

		data = new BarData("Feb", 3.3f, "3.3€");
		dataList.add(data);

		mChart = (ChartProgressBar) findViewById(R.id.ChartProgressBar);

		mChart.setDataList(dataList);
		mChart.build();

Useful methods

  1. mChart.removeBarValues() : Remove values of all progress bars in the chart.

  2. mChart.resetBarValues() : Set values to the chart ( it may used after removeBarValues()) .

  3. mChart.removeClickedBar() : Unselect the clicked bar.

  4. isBarsEmpty() : Check if bars values are empty.

  5. setMaxValue(float maxValue) : Setting bars max value programmatically .

  6. enableBar(int index) : Enable a bar

  7. disableBar(int index) : Disable a bar

  8. setOnBarClickedListener(OnBarClickedListener listener) : listening for click bar event

  9. selectBar(int index) : to select a bar like a click

  10. deselectBar(int index) : to deselect a bar

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].