Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

JTChartView is the new lightweight and fully customizable solution to draw a chart.

License

NotificationsYou must be signed in to change notification settings

kubatruhlar/JTChartView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VersionLicensePlatform

JTChartView

JTChartView is the newlightweight and fully customizable solution todraw a curve and fill the space underneath it with agradient. The result is abeautiful chart.

Example Chart 1Example Chart 2

Installation

There are two ways to add theJTProgressHUD library to your project. Add it as a regular library or install it throughCocoaPods.

pod 'JTChartView'

You may also quick try the example project with

pod try JTChartView

Library requires target iOS 7.0 and above

Works in both - Portrait and Landscape modes

Usage and Customization

JTChartView is designed to be created in one initialization line of code. Core logic creates all layers and draws them into finalJTChartView. YouMUST create aparent view for thatJTChartView to keep it working correctly.

Simple example:

// Parent view (Whatever you need)UIView *baseChartView = [[UIViewalloc]initWithFrame:CGRectMake(30.0,30.0,self.view.frame.size.width -60.0,self.view.frame.size.width -60.0)];baseChartView.layer.masksToBounds =true;baseChartView.backgroundColor = [UIColorwhiteColor];// JTChartViewJTChartView *chartView = [[JTChartViewalloc]initWithFrame:baseChartView.boundsvalues:@[@15, @5, @10]curveColor:[UIColorgrayColor]curveWidth:5.0topGradientColor:[UIColorredColor]bottomGradientColor:[UIColororangeColor]minY:0.5maxY:1.0topPadding:10.0];[baseChartViewaddSubview:chartView];

Author

This library is open-sourced byJakub Truhlar.

License

The MIT License (MIT)Copyright © 2015 Jakub Truhlar

About

JTChartView is the new lightweight and fully customizable solution to draw a chart.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp