iOS Chart. Support animation, click, scroll, area highlight.

Overview

XJYChart

Version Platform License

XJYChart - A High-performance, Elegant, Easy-to-integrate Charting Framework. The Best iOS Objc Charts.

  • chart more beautiful
  • support chart scroll
  • support chart area fill
  • support chart animation
  • support chart touch
  • support chart highlight

Installation

CocoaPods

XJYChart is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "XJYChart"

Then, run the following command:

$ pod install

How to Use

Qucikly Use

Eg:

Initialization

- (instancetype)initWithFrame:(CGRect)frame 
                dataItemArray:(NSMutableArray<XLineChartItem*>*)dataItemArray 
            dataDiscribeArray:(NSMutableArray<NSString*>*)dataDiscribeArray
                    topNumber:(NSNumber*)topNumbser
                 bottomNumber:(NSNumber*)bottomNumber
                    graphMode:(XLineGraphMode)graphMode
           chartConfiguration:(XLineChartConfiguration*)configuration;
  • frame: The frame rectangle for the view
  • dataItemArray: data for lines
  • topNumber: ordinate coordinate top number
  • bottomNumber: ordinate bottom top number
  • graphMode: which kind of line chart you want to use.eg: MutiLineGraph,AreaLineGraph,StackAreaLineGraph
  • chartConfiguration: detail configuration for chart. like lineMode, shadow

Chart Data

- (instancetype)initWithDataNumberArray:(NSMutableArray*)numberArray
                                  color:(UIColor*)color;
  • numberArray: values in line
  • color: line fill color

Chart Configuration

XNormalLineChartConfiguration* configuration =
   [[XNormalLineChartConfiguration alloc] init];
configuration.lineMode = CurveLine;
configuration.isShowShadow = YES;

License

XJYChart is available under the MIT license. See the LICENSE file for more info.

You might also like...
Core Charts | Basic Scrollable Chart Library for iOS
Core Charts | Basic Scrollable Chart Library for iOS

Core Charts | Basic Chart Library for iOS HCoreBarChart VCoreBarChart Requirements Installation Usage Appearance Customization Getting Started You nee

candlestick chart for ios
candlestick chart for ios

###Licenses (The MIT License) Copyright ©2012 zhiyu zheng all rights reserved. Permission is hereby granted, free of charge, to any person obtaining a

A simple pie chart for iOS.
A simple pie chart for iOS.

EGPieChart Installation EGPieChart is available through CocoaPods. To install it, simply add the following line to your Podfile: pod 'EGPieChart' manu

MSBBarChart is an easy to use bar chart library for iOS
MSBBarChart is an easy to use bar chart library for iOS

MSBBarChart MSBBarChart is an easy to use bar chart library for iOS. Usage if you want to hide label above bar barChart.setOptions([.isHiddenLabelAbov

 TKRadarChart - A customizable radar chart  in Swift
TKRadarChart - A customizable radar chart in Swift

TKRadarChart A customizable radar chart in Swift Requirements iOS 8.0+ Xcode 9.0 Swift 4.0 Installation CocoaPods You can use CocoaPods to install TKR

SwiftUI Bar Chart
SwiftUI Bar Chart

SwiftUI BarChart Lightweight and easy to use SwiftUI chart library for all Apple platforms Features Scaling on both axes Fully customizable axes (labe

A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.
A powerful 🚀 Android chart view / graph view library, supporting line- bar- pie- radar- bubble- and candlestick charts as well as scaling, panning and animations.

⚡ A powerful & easy to use chart library for Android ⚡ Charts is the iOS version of this library Table of Contents Quick Start Gradle Maven Documentat

ANDLineChartView is easy to use view-based class for displaying animated line chart.
ANDLineChartView is easy to use view-based class for displaying animated line chart.

ANDLineChartView for iOS ANDLineChartView is easy to use view-based class for displaying animated line chart. Usage API is simple. Just implement foll

Flower-like chart written in Swift
Flower-like chart written in Swift

FlowerChart - custom chart written in Swift Fully vector flower-shaped chart written in Swift Flower-shaped chart written in Swift, this repo is a sam

Comments
  • Kellyroach/fix warnings

    Kellyroach/fix warnings

    This pull request fixes Xcode 9.4.1 compiler warnings and adds a working Swift XJYChartDemo-Swift demo app to the repo.

    • Fixes Xcode 9.4.1 compiler warnings
    • Fixes Analyze warnings
    • Adds a working Swift XJYChartDemo-Swift demo app ported from the Objective-C XJYChartDemo demo app.
    • Moves XJYChart.xcworkspace, Podfile, Pods to the root folder
    • Tidies Project Navigator content
    • Rebuilds Products/XJYChart.framework
    • Removes .DS_Store files
    • Removes XJYChart/XJYChartDemo/XJYChartDemo/linkmap.txt
    • Removes XJYChartDemoTests that isn't really testing

    We agree to the MIT license.

    opened by kellyroach 1
  • Change font style and colour for axis in line chart

    Change font style and colour for axis in line chart

    Can you please let me know how can I change the text color and font style for both x axis and y axis.

    It will be a great help if you can give answer for this

    opened by krina-pixster 0
  • Legends feature!!

    Legends feature!!

    Hey this chart is very easy to use and customize. Can we have legends in this like https://github.com/danielgindi/Charts. It will be a great help if you implement that feature.

    enhancement 
    opened by shivanand217 0
Owner
junyixie
junyixie
SwiftUI library to easily render diagrams given a tree of objects. Similar to ring chart, sunburst chart, multilevel pie chart.

Swift Sunburst Diagram Sunburst diagram is a library written with SwiftUI to easily render diagrams given a tree of objects. Similar to ring chart, su

Ludovic Landry 494 Dec 19, 2022
iOS/iPhone/iPad Chart, Graph. Event handling and animation supported.

#EChart A highly extendable, easy to use chart with event handling, animation supported. ##Test How To Use Download and run the EChartDemo project is

Scott Zhu 646 Dec 27, 2022
SwiftChart - A simple line and area charting library for iOS.

SwiftChart A simple line and area charting library for iOS. ?? Line and area charts ?? Multiple series ?? Partially filled series ?? Works with signed

Giampaolo Bellavite 1k Jan 2, 2023
A simple and beautiful chart lib used in Piner and CoinsMan for iOS(https://github.com/kevinzhow/PNChart) Swift Implementation

PNChart-Swift PNChart(https://github.com/kevinzhow/PNChart) Swift Implementation Installation This isn't on CocoaPods yet, so to install, add this to

Kevin 1.4k Nov 7, 2022
A simple and beautiful chart lib used in Piner and CoinsMan for iOS

PNChart You can also find swift version at here https://github.com/kevinzhow/PNChart-Swift A simple and beautiful chart lib with animation used in Pin

Kevin 9.8k Jan 6, 2023
A simple and animated Pie Chart for your iOS app.

XYPieChart XYPieChart is an simple and easy-to-use pie chart for iOS app. It started from a Potion Project which needs an animated pie graph without i

XY Feng 1.7k Sep 6, 2022
FSLineChart A line chart library for iOS.

FSLineChart A line chart library for iOS. Screenshots Installing FSLineChart Add the contents of the FSLineChart project to your directory or simply a

Arthur 856 Nov 24, 2022
an iOS open source Radar Chart implementation

JYRadarChart an open source iOS Radar Chart implementation ##Screenshots Requirements Xcode 5 or higher iOS 5.0 or higher ARC CoreGraphics.framework D

Johnny Wu 416 Dec 31, 2022
Easy to use Spider (Radar) Chart library for iOS written in Swift.

DDSpiderChart Easy to use Spider (Radar) Chart library for iOS written in Swift. Requirements iOS 8.0+ / macOS 10.10+ / tvOS 9.0+ / watchOS 2.0+ Xcode

Deniz Adalar 82 Nov 14, 2022
Line Chart library for iOS written in Swift

Swift LineChart Usage var lineChart = LineChart() lineChart.addLine([3, 4, 9, 11, 13, 15]) Features Super simple Highly customizable Auto scaling Touc

Mirco Zeiss 601 Nov 15, 2022