{"id":13641903,"url":"https://github.com/mancj/SlimChart","last_synced_at":"2025-04-20T12:30:57.508Z","repository":{"id":128809099,"uuid":"72465764","full_name":"mancj/SlimChart","owner":"mancj","description":"SlimChart is a light and easy to use chart library for Android.","archived":false,"fork":false,"pushed_at":"2018-08-19T23:54:35.000Z","size":2219,"stargazers_count":177,"open_issues_count":1,"forks_count":24,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-04-06T10:08:24.633Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mancj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2016-10-31T18:24:22.000Z","updated_at":"2025-01-18T01:54:08.000Z","dependencies_parsed_at":"2023-04-20T16:33:43.490Z","dependency_job_id":null,"html_url":"https://github.com/mancj/SlimChart","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FSlimChart","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FSlimChart/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FSlimChart/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mancj%2FSlimChart/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mancj","download_url":"https://codeload.github.com/mancj/SlimChart/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249893357,"owners_count":21341434,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T01:01:25.550Z","updated_at":"2025-04-20T12:30:57.502Z","avatar_url":"https://github.com/mancj.png","language":"Java","readme":"\u003cimg src=\"https://github.com/mancj/SlimChart/blob/master/art/app_logo.png\" width=\"100\"\u003e \n# SlimChart\nSlimChart is a light and easy to use chart library for Android.\nUsing SlimChart you will be able to create a stylish chart for your stats\n\n----------\n\u003cimg src=\"https://github.com/mancj/SlimChart/blob/master/art/slim-chart-screencast.gif\" width=\"300\"\u003e \n\u003cimg src=\"https://github.com/mancj/SlimChart/blob/master/art/device-2016-10-31-215202.png\" width=\"300\"\u003e \n\n## To get a SlimChart project into your build:\n\n**Step 1.** Add it in your root build.gradle at the end of repositories:\n```xml \nallprojects {\n    repositories {\n        ...\n        maven { url \"https://jitpack.io\" }\n    }\n}\n```\n**Step 2.** Add the dependency\n```xml\ndependencies {\n    compile 'com.github.mancj:SlimChart:0.1.2'\n}\n```\n\n\n## Usage examples\n\n**xml:**\n```xml\n\u003ccom.mancj.slimchart.SlimChart\n        android:id=\"@+id/slimChart\" \n        android:layout_width=\"wrap_content\"\n        android:layout_height=\"wrap_content\"\n        app:text=\"234kg\"\n        app:textColor=\"@color/colorAccent\"\n        app:strokeWidth=\"8dp\"\n        app:roundedEdges=\"true\"/\u003e\n```\n\n**java:**\n```java\n    @Override\n    protected void onCreate(Bundle savedInstanceState) {\n        super.onCreate(savedInstanceState);\n        setContentView(R.layout.activity_main);\n\n        SlimChart slimChart = (SlimChart) findViewById(R.id.slimChart);\n\n        //Optional - create colors array\n        int[] colors = new int[4];\n        colors[0] = Color.rgb(46, 41,78);\n        colors[1] = Color.rgb(127, 22, 101);\n        colors[2] = Color.rgb(217, 3, 104);\n        colors[3] = Color.rgb(247, 76, 110);\n        slimChart.setColors(colors);\n\n        //Create array for your stats\n        final float[] stats = new float[4];\n        stats[0] = 100;\n        stats[1] = 85;\n        stats[2] = 40;\n        stats[3] = 25;\n        slimChart.setStats(stats);\n\n        //Play animation\n        slimChart.setStartAnimationDuration(2000);\n\n        //Set single color - other colors will be generated automatically\n        slimChart.setColor(ContextCompat.getColor(this, R.color.colorPrimary));\n\n        slimChart.setStrokeWidth(13);\n        slimChart.setText(\"234\");\n        slimChart.setTextColor(Color.WHITE);\n        slimChart.setRoundEdges(true);\n    }\n```\n","funding_links":[],"categories":["图表(Chart)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmancj%2FSlimChart","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmancj%2FSlimChart","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmancj%2FSlimChart/lists"}