Giter Site home page Giter Site logo

Comments (8)

jettro avatar jettro commented on August 22, 2024

It is harder to decide when to start drawing the chart if I would pass the config. Should I wait before drawing or not. I made the decision to provide acces to the c3 API methods using a callback. Check this sample, maybe that is enough for you:

https://github.com/jettro/c3-angular-directive/blob/master/examples/callback-sample.html

from c3-angular-directive.

jonchenn avatar jonchenn commented on August 22, 2024

Well, the config attribute can be pass as a base config object. Similr to the empty config object you have in controller: https://github.com/jettro/c3-angular-directive/blob/master/src/controller.js#L37. Other attributes can override the base config, and construct the final config and draw the graph as it does today.

By overriding the entire config would provide more granular control of the chart, also keep up with the latest C3 spec.

However this might be a minority use case. Feel free to close this issue if it doesn't provide too much value.

from c3-angular-directive.

jettro avatar jettro commented on August 22, 2024

I would like the framework to be flexible, I understand what you mean. Going to think about it a bit more. If it helps people I wouldn't mind. Thanks for the idea

from c3-angular-directive.

sajidali avatar sajidali commented on August 22, 2024

@jettro I believe this suggestion will help a lot, allowing to provide base config will go a long way hopefully.
I would love to have this feature.

from c3-angular-directive.

jettro avatar jettro commented on August 22, 2024

Fixed, you can now provide an initial c3 config object using the chart directive.

from c3-angular-directive.

sajidali avatar sajidali commented on August 22, 2024

Thank you @jettro

from c3-angular-directive.

sajidali avatar sajidali commented on August 22, 2024

URL not working any more.
"Check this sample, maybe that is enough for you:
https://github.com/jettro/c3-angular-directive/blob/master/examples/callback-sample.html"

from c3-angular-directive.

jettro avatar jettro commented on August 22, 2024

You are right, did a big refactoring of the samples, you can find the running examples here:
http://jettro.github.io/c3-angular-directive/examples/index.html#/dashboard

from c3-angular-directive.

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.