Comments (8)
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.
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.
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.
@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.
Fixed, you can now provide an initial c3 config object using the chart directive.
from c3-angular-directive.
Thank you @jettro
from c3-angular-directive.
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.
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)
- Can't Get Timeseries X Axis to Display Properly? HOT 1
- axis.min and axis.max don't accept decimal numbers
- Compatibility issue with ionic HOT 1
- Zoom rescale support HOT 1
- Commas in data cause data to become misinterpreted HOT 2
- Numerous donuts on page
- range-mix and range-max attribute in chart-axis doesnt work HOT 1
- Area charts? HOT 2
- Pass dynamic data to chart-events on-click-data HOT 1
- Guage Chart Will Not Work Dynamically HOT 2
- Change column width HOT 1
- There is any good tutorial available with angularjs??? HOT 1
- Incorrect documentation for chartAxisXTick directive HOT 1
- Angular 1.6.6 support HOT 3
- onzoom not working?
- support D3 zoom event?
- Customize Tooltip content HOT 1
- Upgrade to C3 V0.6.X HOT 2
- how to pass param when use value-format-function
- Download chart as an image or a pdf
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from c3-angular-directive.