This project implements an Android application that displays a bar chart using RecyclerView and adapters. It allows users to visualize data in a graphical representation of bars.

App screenshot

App screenshot
-
Clone the repository to your local machine.
git clone https://github.com/prashant17d97/charts.git
-
Open the project in Android Studio.
-
Build and run the application on an Android device or emulator.
Upon launching the application, the main activity (MainActivity
) will be displayed, showing a bar chart with data.
The bar chart displays values on the y-axis and corresponding labels on the x-axis. The bars represent the values visually, with the height of each bar indicating the magnitude of the value.
The bar chart can be scrolled vertically to view all the bars, and there is also a horizontal bar chart available for a different visualization.
The project is built using the following components and concepts:
RecyclerView
: Used to display a list of bars in a vertical or horizontal layout.Adapter
: Custom adapters (BarGraphAdapter
andBarGraphHorizontalAdapter
) are implemented to bind data to the RecyclerView and create the visual representation of the bars.Data Model
: TheBarModel
class represents the data for each bar, including the bar value and the corresponding label for the x-axis.View Binding
: TheActivityMainBinding
class is utilized to bind the layout elements in the activity.
Contributions to this project are welcome. Here are the suggested steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make the necessary changes and additions.
- Test your changes to ensure they work as expected.
- Submit a pull request detailing your changes.
Please make sure to follow the coding conventions and standards used in the project.
This project makes use of the following libraries:
- Android Jetpack libraries
- RecyclerView
Special thanks to the creators and contributors of these libraries for their valuable work.