Skip to content

Commit

Permalink
Initial ~alpha01 released
Browse files Browse the repository at this point in the history
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
hi-manshu committed Aug 14, 2022
0 parents commit 648d01e
Show file tree
Hide file tree
Showing 90 changed files with 2,860 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .gitignore
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/*
3 changes: 3 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions .idea/.name

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/compiler.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

38 changes: 38 additions & 0 deletions Readme.md
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.


1 change: 1 addition & 0 deletions app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
62 changes: 62 additions & 0 deletions app/build.gradle.kts
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)
}
21 changes: 21 additions & 0 deletions app/proguard-rules.pro
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)
}
}
29 changes: 29 additions & 0 deletions app/src/main/AndroidManifest.xml
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>
Loading

0 comments on commit 648d01e

Please sign in to comment.