Code Monkey home page Code Monkey logo

Comments (8)

danielgindi avatar danielgindi commented on July 30, 2024

You need to import the Charts namespace.

from charts.

ricardo85x avatar ricardo85x commented on July 30, 2024

Hello Daniel
I am not sure how to do that.

The import Charts also do not work.

I did tried to create a bridging header with: #import < Charts/Charts.h >

And in my ViewController I did add:
import Charts.

It did compile, but I got this error when the app start:

fatal error: unexpectedly found nil while unwrapping an Optional value

on ChartViewBase file in the line with:
if (noDataTextDescription!.lengthOfBytesUsingEncoding(NSUTF16StringEncoding) > 0)

from charts.

danielgindi avatar danielgindi commented on July 30, 2024

from charts.

ricardo85x avatar ricardo85x commented on July 30, 2024

my Xcode version is: Version 6.3 (6D554n)
from this installer:(Xcode_6.3_beta_4.dmg)

from charts.

ricardo85x avatar ricardo85x commented on July 30, 2024

I replaced this line with: if (noDataTextDescription != nil && noDataTextDescription!.lengthOfBytesUsingEncoding(NSUTF16StringEncoding) > 0)

and now it is working

from charts.

danielgindi avatar danielgindi commented on July 30, 2024

Ok, you were right, there is an issue :-)

from charts.

danielgindi avatar danielgindi commented on July 30, 2024

I have already pushed a fix

from charts.

ricardo85x avatar ricardo85x commented on July 30, 2024

thanks!
Now I was able to create a working chart :)

from charts.

Related Issues (20)

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.