Fit Chart is an Android view similar to Google Fit wheel chart.
Switch branches/tags
Nothing to show
Clone or download
Latest commit 994edfb Feb 8, 2016

Fit Chart

Latest Version


How to use

Configuring your project dependencies

Add the library dependency to your build.gradle file.

dependencies {
    compile 'com.txusballesteros:FitChart:1.0'

Adding the view to your layout

Add the view to your xml layout file.

            android:layout_height="200dp" />

Styling the view

If you want to customize the view, you can set the next attributes.

            app:animationMode="overdraw" />

Setting the values

Setting the minimum and maximum values of the scale of the chart.

final FitChart fitChart = (FitChart)findViewById(;

Setting a single progress value.

final FitChart fitChart = (FitChart)findViewById(;

Setting a some progress values.

Collection<FitChartValue> values = new ArrayList<>();
values.add(new FitChartValue(30f, 0x2d4302));
values.add(new FitChartValue(20f, 0x75a80d));
values.add(new FitChartValue(15f, 0x8fc026));
values.add(new FitChartValue(10f, 0xB5CC84));
final FitChart fitChart = (FitChart)findViewById(;


Copyright Txus Ballesteros 2015 (@txusballesteros)

This file is part of some open source application.

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Contact: Txus Ballesteros