Coder Social home page Coder Social logo

xw142332 / xjychart Goto Github PK

View Code? Open in Web Editor NEW

This project forked from junyixie/xjychart

0.0 2.0 0.0 17.19 MB

Excellent charting framework For iOS Platform. Support animation, click, slide, area highlight.

License: MIT License

Ruby 0.79% Objective-C 92.87% C 1.26% HTML 3.15% Gnuplot 0.43% CSS 0.22% JavaScript 1.28%

xjychart's Introduction

XJYChart

gif

High-performance Elegant  Easy-to-integrate Charting Framework.

License release cocoapods

XJYChart can give App more interactive, it supports touch, slide. Unlike other charting frameworks, XJYChart uses a component-based design that is very solid, giving XJYChart an easy iteration feature. Support the beautiful animation effect, have the perfect event response mechanism. And the performance is very good. Based on Core Animation. Easy to use, easy to modify. Elegant interface, smooth animation.


Charts

  • LineChart
  • BarChart
  • PositiveNegativeBarChart
  • PieChart
  • CycleChart

Features

  • Animation
  • Touch
  • Scroll
  • Beautiful

gif

Installation With CocoaPods

pod 'XJYChart'

update 0.0.3

+ Add XJYCycleView   
  • touch
  • gradient

image

use XIB or Code

//XJYCycleView
- (instancetype)initWithFrame:(CGRect)frame;

Update 0.0.2

- Clear abandoned API
+ Add The positive and negative Bar Chart**

image

How to Use

XXPositiveNegativeBarChart
XXPositiveNegativeBarChart *barChart = [[XXPositiveNegativeBarChart alloc] initWithFrame:CGRectMake(0, 0, 375, 200) dataItemArray:itemArray topNumber:@100 bottomNumber:@(-170)];
XXLineChart
  • colorMode
+ lineMode
    + CurveLine
    + BrokenLine
- (instancetype)initWithFrame:(CGRect)frame dataItemArray:(NSMutableArray<XXLineChartItem *> *)dataItemArray dataDiscribeArray:(NSMutableArray<NSString *> *)dataDiscribeArray topNumber:(NSNumber *)topNumbser bottomNumber:(NSNumber *)bottomNumber;
XXLineChartItem
- (instancetype)initWithDataNumberArray:(NSMutableArray *)numberArray color:(UIColor *)color dataDescribe:(NSString *)dataDescribe;
XXLineChart *lineChart = [[XXLineChart alloc] initWithFrame:CGRectMake(0, 0, 375, 200) dataItemArray:itemArray dataDiscribeArray:[NSMutableArray arrayWithArray:@[@"January", @"February", @"March", @"April", @"May"]] topNumber:@200 bottomNumber:@0];
Cycle Chart
//XJYCycleView
- (instancetype)initWithFrame:(CGRect)frame;
BarChart
XXBarChart *barChart = [[XXBarChart alloc] initWithFrame:CGRectMake(0, 0, 375, 200) dataItemArray:itemArray topNumber:@150 bottomNumber:@(0)];

####### BarChartdelegate

- (void)touchBarAtIdx:(NSUInteger)idx;
PieChart
self.pieChartView = [[XJYPieChart alloc] init];
NSMutableArray *pieItems = [[NSMutableArray alloc] init];
NSArray *colorArray = @[RGB(145, 235, 253), RGB(198, 255, 150), RGB(254, 248, 150), RGB(253, 210, 147)];
NSArray *dataArray = @[@"iPhone6",@"iPhone6 Plus",@"iPhone6s",@"其他"];
XJYPieItem *item1 = [[XJYPieItem alloc] initWithDataNumber:[NSNumber numberWithDouble:20.9] color:colorArray[0] dataDescribe:dataArray[0]];
            [pieItems addObject:item1];
XJYPieItem *item2 = [[XJYPieItem alloc] initWithDataNumber:[NSNumber numberWithDouble:14.82] color:colorArray[1] dataDescribe:dataArray[1]];
[pieItems addObject:item2];  
self.pieChartView.dataItemArray = pieItems;
ChartColor

Provide many colors In XJYColor.h ...

Update

Update 1.1

Added slippery graph And Chart Animations Example

Directly Run To See XJYChart Example

使用该框架的App

  • 急用钱

image image image image image image

xjychart's People

Contributors

readmecritic avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.