-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
Handle Click Listener Wrapped Bar Chart's clicked Listener Line Chart Init Added Line chart Added Readme Added Point Chart Add: Circle Graph Wrapped up the Circle Chart Added Labels to X Axis Updated Readme Added PieChart confis Add: Grouped Barchart Fixed. Lint Migrated Settings gradle to kts Added Font Factor Init Stacked Bar settings.gradle -> settings.gradle.kts Migrated to BuildSrc Update: Readme Update: Readme Update: Readme Update: Readme Add Readme for BarData Add Readme for GroupedBarChart Add: Readme Update: Readme Add: Documentation Added: Start for Line chart Add: CurveLineChart Add: CurveLineChart Updated readme Updated Banner Initial project release Initial project release Initia Project release- alpha01
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/caches | ||
/.idea/libraries | ||
/.idea/modules.xml | ||
/.idea/workspace.xml | ||
/.idea/navEditor.xml | ||
/.idea/assetWizardSettings.xml | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild | ||
.cxx | ||
local.properties | ||
build/* | ||
/buildSrc/build/* |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
## Charty : Elementary Chart library for Compose | ||
|
||
![Charty](img/charty-banner.png) | ||
|
||
Chart Library built using Jetpack Compose and is highly customizable. Updates coming soon! | ||
_Made with ❤️ for Android Developers by Himanshu_ | ||
|
||
[![Github Followers](https://img.shields.io/github/followers/hi-manshu?label=Follow&style=social)](https://github.com/hi-manshu) | ||
[![Twitter Follow](https://img.shields.io/twitter/follow/hi_man_shoe?label=Follow&style=social)](https://twitter.com/hi_man_shoe) | ||
|
||
## Implementation | ||
|
||
### Gradle setup | ||
|
||
In `build.gradle` of app module, include this dependency | ||
|
||
```gradle | ||
dependencies { | ||
implementation("com.himanshoe:charty:1.0.0-alpha01") | ||
} | ||
``` | ||
|
||
## Documentation | ||
You can find the detail implementation of the following: | ||
|
||
- [BarChart](docs/BarChart.md) | ||
- [GroupedBarChart](docs/GroupedBarChart.md) | ||
- [CircleChart](docs/CircleChart.md) | ||
- [PointChart](docs/PointChart.md) | ||
- [LineChart](docs/LineChart.md) | ||
- [PieChart](docs/PieChart.md) | ||
- [CurveLineChart](docs/CurveLineChart.md) | ||
|
||
|
||
### Contribution | ||
Please feel free to fork it and open a PR. | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
plugins { | ||
id(Plugins.application) | ||
kotlin(Plugins.android) | ||
} | ||
|
||
android { | ||
compileSdk = ModuleExtension.compileSdkVersion | ||
|
||
defaultConfig { | ||
applicationId = ModuleExtension.App.applicationId | ||
minSdk = ModuleExtension.DefaultConfigs.minSdkVersion | ||
targetSdk = ModuleExtension.DefaultConfigs.targetSdkVersion | ||
versionCode = 1 | ||
versionName = "1.0" | ||
|
||
testInstrumentationRunner = ModuleExtension.DefaultConfigs.testInstrumentationRunner | ||
vectorDrawables { | ||
useSupportLibrary = true | ||
} | ||
} | ||
buildTypes { | ||
getByName("release") { | ||
isMinifyEnabled = false | ||
proguardFiles( | ||
getDefaultProguardFile(ModuleExtension.DefaultConfigs.defaultProguardOptimizeFileName), | ||
ModuleExtension.DefaultConfigs.proGuardRules | ||
) | ||
} | ||
create("staging") { | ||
initWith(getByName("debug")) | ||
matchingFallbacks.add("debug") | ||
} | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = JavaVersion.VERSION_11 | ||
targetCompatibility = JavaVersion.VERSION_11 | ||
} | ||
|
||
kotlinOptions { | ||
jvmTarget = ModuleExtension.jvmTarget | ||
} | ||
buildFeatures { | ||
compose = true | ||
} | ||
composeOptions { | ||
kotlinCompilerExtensionVersion = Versions.compose | ||
} | ||
} | ||
|
||
dependencies { | ||
//implementation(project(":charty")) | ||
implementation("com.himanshoe:charty:1.0.0-alpha01") | ||
implementation(Deps.Compose.ui) | ||
implementation(Deps.Compose.material) | ||
implementation(Deps.Compose.activity) | ||
implementation(Deps.Jetpack.Core.ktx) | ||
implementation(Deps.Android.materialDesign) | ||
testImplementation(Deps.Test.jUnit) | ||
androidTestImplementation(Deps.AndroidTest.jUnitExtensions) | ||
androidTestImplementation(Deps.AndroidTest.espressoCore) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Add project specific ProGuard rules here. | ||
# You can control the set of applied configuration files using the | ||
# proguardFiles setting in build.gradle. | ||
# | ||
# For more details, see | ||
# http://developer.android.com/guide/developing/tools/proguard.html | ||
|
||
# If your project uses WebView with JS, uncomment the following | ||
# and specify the fully qualified class name to the JavaScript interface | ||
# class: | ||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | ||
# public *; | ||
#} | ||
|
||
# Uncomment this to preserve the line number information for | ||
# debugging stack traces. | ||
#-keepattributes SourceFile,LineNumberTable | ||
|
||
# If you keep the line number information, uncomment this to | ||
# hide the original source file name. | ||
#-renamesourcefileattribute SourceFile |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.himanshoe.charty | ||
|
||
import androidx.test.ext.junit.runners.AndroidJUnit4 | ||
import androidx.test.platform.app.InstrumentationRegistry | ||
import org.junit.Assert.assertEquals | ||
import org.junit.Test | ||
import org.junit.runner.RunWith | ||
|
||
/** | ||
* Instrumented test, which will execute on an Android device. | ||
* | ||
* See [testing documentation](http://d.android.com/tools/testing). | ||
*/ | ||
@RunWith(AndroidJUnit4::class) | ||
class ExampleInstrumentedTest { | ||
@Test | ||
fun useAppContext() { | ||
// Context of the app under test. | ||
val appContext = InstrumentationRegistry.getInstrumentation().targetContext | ||
assertEquals("com.himanshoe.charty", appContext.packageName) | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
xmlns:tools="http://schemas.android.com/tools" | ||
package="com.himanshoe.charty"> | ||
|
||
<application | ||
android:allowBackup="true" | ||
android:dataExtractionRules="@xml/data_extraction_rules" | ||
android:fullBackupContent="@xml/backup_rules" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:roundIcon="@mipmap/ic_launcher_round" | ||
android:supportsRtl="true" | ||
android:theme="@style/Theme.Chartylibrary" | ||
tools:targetApi="31"> | ||
<activity | ||
android:name=".MainActivity" | ||
android:exported="true" | ||
android:label="@string/app_name" | ||
android:theme="@style/Theme.Chartylibrary"> | ||
<intent-filter> | ||
<action android:name="android.intent.action.MAIN" /> | ||
|
||
<category android:name="android.intent.category.LAUNCHER" /> | ||
</intent-filter> | ||
</activity> | ||
</application> | ||
|
||
</manifest> |