Skip to content

Aghajari/SimpleChart

Repository files navigation

SimpleChart

Simple Line, Circle, Bar chart for Android

LineChart

<com.aghajari.simplechart.LineChart
    android:id="@+id/line_chart"
    android:layout_width="350dp"
    android:layout_height="200dp"
    android:layout_gravity="center" />
LineChart lineChart = findViewById(R.id.line_chart);
lineChart.setLineColor(...);
lineChart.setPointColor(...);
lineChart.addData(8f, 10f, 5f, 7f, 4f, 6f);

CircleChart

<com.aghajari.simplechart.CircleChart
    android:id="@+id/circle_chart"
    android:layout_width="200dp"
    android:layout_height="200dp"
    android:layout_gravity="center" />
CircleChart circleChart = findViewById(R.id.circle_chart);
circleChart.addData(0xFF7AA6E8, Color.WHITE, 150, 40);
circleChart.addData(0xFFD273A2, Color.WHITE, 125, 35);
circleChart.addData(0xFFE2B263, Color.WHITE, 100, 25);

BarChart

<com.aghajari.simplechart.BarChart
    android:id="@+id/bar_chart"
    android:layout_width="300dp"
    android:layout_height="200dp"
    android:layout_gravity="center" />
BarChart barChart = findViewById(R.id.bar_chart);
barChart.setMaxValue(100);
barChart.addData(60, "Say");
barChart.addData(40, "Hello");
barChart.addData(80, "World");
barChart.addData(30, ":)");

License

Copyright 2020 Amir Hossein Aghajari
Licensed 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

   http://www.apache.org/licenses/LICENSE-2.0

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.
LCoders | AmirHosseinAghajari
Amir Hossein Aghajari • EmailGitHub

About

Simple Line, Circle, Bar chart for Android

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages