Description
• Take the full control over drawing the path.
• Change the gradient color
• Start Color
• End Color
• Change the circle color
• Change the circle radius
• Change the path color
• Change the line thickness
• On/Off Gridlines
• Change the grid line color
• On/Off Graduations
• Change the graduation text color
• Draw graph with different starting point
• Draw graph from the left border (X0 - coordinate)
• Draw graph with exact coordinates given
• Draw graph from left border and stretch until the end of the screen
Supported on OS - JellyBean 4.1 and above
Aesthetic GraphView alternatives and similar packages
Based on the "UI Widget" category.
Alternatively, view Aesthetic GraphView alternatives based on common mentions on social networks and blogs.
-
EffectiveAndroidUI
Sample project created to show some of the best Android practices to work in the Android UI Layer. The UI layer of this project has been implemented using MVP or MVVM (without binding engine) to show how this patterns works. This project is used during the talk "EffectiveAndroidUI". -
ShowcaseView
DISCONTINUED. Highlight the best bits of your app to users quickly, simply, and cool...ly -
GreenDroid
GreenDroid is a development library for the Android platform. It makes UI developments easier and consistent through your applications. -
FancyToast-Android
Make your native android Toasts Fancy. A library that takes the standard Android toast to the next level with a variety of styling options. Style your toast from code. -
Smiley Rating
SmileyRating is a simple rating bar for android. It displays animated smileys as rating icon. -
ParallaxEverywhere
Parallax everywhere is a library with alternative android widgets with parallax effects. -
FancyAlertDialog-Android
Make your native android Dialog Fancy. A library that takes the standard Android Dialog to the next level with a variety of styling options. Style your dialog from code. -
MaterialBanner
A library that provides an implementation of the banner widget from the Material design. -
Custom-Calendar-View
DISCONTINUED. The CustomCalendarView provides an easy and customizable calendar to create a Calendar. It dispaly the days of a month in a grid layout and allows to navigate between months -
FingerSignView
A simple library to let you sign (or draw lines) smoothly with your finger into a view and save it. -
Horizontal Calendar View
A simple library to display a horizontal calendar with custom start and end date, and mark events with a background
CodeRabbit: AI Code Reviews for Developers
* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Aesthetic GraphView or a related project?
README
GraphView
A simple graph library unlike other available libraries in the graph drawing arena.
What's different?
- Take the full control over drawing the path.
- Change the gradient color
- Start Color
- End Color
- Change the circle color
Change the circle radius
Change the path color
Change the line thickness
On/Off Gridlines
- Change the grid line color
On/Off Graduations
- Change the graduation text color
Draw graph with different starting point
- Draw graph from the left border (X0 - coordinate)
- Draw graph with exact coordinates given
- Draw graph from left border and stretch until the end of the screen
Installation
Step 1.
Add the jitpack repository to build.gradle in Project Level at the end of repositories
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Step 2.
Add the dependency to build.gradle in app level
dependencies {
implementation 'com.github.NsAveek:GraphView:0.1.0'
}
Usage
private val coordinates = arrayListOf<Pair<Float,Float>>()
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
initCoordinates()
val graphView = findViewById<com.aveek.aesthetic_graphview.GraphView>(R.id.graphView)
graphView.setCoordinatePoints(coordinates)
}
private fun initCoordinates() {
coordinates.add(Pair(0f,0f))
coordinates.add(Pair(1f,2f))
coordinates.add(Pair(3f,4f))
coordinates.add(Pair(4f,3f))
coordinates.add(Pair(5f,5f))
coordinates.add(Pair(6f,4f))
coordinates.add(Pair(7f,2f))
}
<com.aveek.aesthetic_graphview.GraphView
android:id="@+id/graphView"
android:layout_width="match_parent"
android:layout_height="match_parent"
app:circleColor="#000000"
app:circleRadius="3"
app:drawGraduations="true"
app:drawGrids="true"
app:gradientEndColor="@color/endColor"
app:gradientStartColor="#fef08c"
app:graduationColor="@color/colorPrimaryDark"
app:graphType="START_AT_LEFT"
app:gridColor="#fef08c"
app:lineColor="#f8cb7a"
app:pathWidth="2"
/>
Change the gradient color [Default color is already set]
app:gradientStartColor="#fef08c"
app:gradientEndColor="@color/endColor"
Change the circle color [Default color is already set]
app:circleColor="#000000"
Change the circle radius [Default radius is already set]
app:circleRadius="3"
Change the path color [Default color is already set]
app:lineColor="#f8cb7a"
Change the line thickness [Default thickness is already set]
app:pathWidth="2"
Change the Grid line drawing or not [Default is already set]
app:drawGrids="true"
Change the Grid line color [Default color is already set]
app:gridColor="#fef08c"
Change the Graduation text drawing or not [Default is already set]
app:drawGraduations="true"
Change the Graduation text color [Default color is already set]
app:graduationColor="@color/colorPrimaryDark"
Draw graph from the left border (X0 - coordinate)
app:graphType="START_AT_LEFT"
Draw graph from the left border to end border (X0 - XN coordinate)
app:graphType="TOUCH_END"
Draw graph to the exact coordinate (X0,Y0 coordinate)
app:graphType="EXACT"
Future Task
- Make it scrollable
- When there are a lots of data and user wants to see in a scrollview
- When the TOUCH_END parameters called and user want to see in a scrollview
- Allow Multiple graphs to be drawn one top of another based on user's choice
- Add the graduation parameters (i.e: User may want to see Monthly data, so the graduation will be Jan, Feb, Mar etc. The graph will fit into the monthly block accordingly. Currently user can see only X co-ordinates value)
LICENSE
Copyright 2020 Aveek
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.
*Note that all licence references and agreements mentioned in the Aesthetic GraphView README section above
are relevant to that project's source code only.