Code Monkey home page Code Monkey logo

viniciusaro / ios-bar-chart-view Goto Github PK

View Code? Open in Web Editor NEW
19.0 19.0 3.0 666 KB

The iOS Bar Chart is a great tool to represent data in an elegant and simple way. The default appearance has a beautiful flat design, It has built in animation features for presenting, inserting, deleting and updating actions and it is fully customisable, being able to change colors, label text, font, all through properties attributes and delegate methods. The content is managed by a data source object following the built in Apple controls standards.

Home Page: https://www.youtube.com/watch?v=eWJi99ZGcgs

Objective-C 100.00%

ios-bar-chart-view's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

ios-bar-chart-view's Issues

Add more bar chart in one single VC

Hey there, thank you for this great bar chart, but currently I need to add 4 bar chart in one single view controller? how can I accomplish this??

Warning in is

Hello,
Thanks for your excellent tool!
I try to implement in my app under is and Xcode 7 and I got the following warning ---->

/ios-bar-chart/MCNewCustomLayeredView.m:196:12: Incompatible pointer types returning 'CALayer * _Nullable' from a function with result type 'MCNewCustomLayer *'

Can you please fix it?

Thanks again

George Gerardis

Problem with chart when value is zero

Hi there, I had a problem with this chart view when i want to set all the chartvalues to zero as below :

// populate char values array
    chartValues = [[NSMutableArray alloc] init];

    [chartValues addObject:[NSNumber numberWithFloat:0]];
    [chartValues addObject:[NSNumber numberWithFloat:0]];
    [chartValues addObject:[NSNumber numberWithFloat:0]];
    [chartValues addObject:[NSNumber numberWithFloat:0]];
    [chartValues addObject:[NSNumber numberWithFloat:0]];

the code stopped at this lines :

// main bar
    CGPathAddRoundedRect(self.mainPath,
                         &transform,
                         CGRectMake(self.x, self.frame.size.height-xAxisHeight, width, -normalizedHeight),
                         MIN(2*fabs(self.cornerRadius), fabs(width))/2,
                         MIN(2*fabs(self.cornerRadius), fabs(normalizedHeight))/2);

which gave me an error log like this :

*Assertion failed: (corner_height >= 0 && 2 * corner_height <= CGRectGetHeight(rect)), function void CGPathAddRoundedRect(CGMutablePathRef, const CGAffineTransform , CGRect, CGFloat, CGFloat), file Paths/CGPath.cc, line 428

How can I fix this? Thank you.

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.