Comments (4)
Are you sure that data is an array.dailyPrecipitation? Maybe you should redraw the chart yourself?
In my example I add points to the current collection, add a watch to the collection and in the end redraw the graph using "function loadChartData()". You assign a new object, I hope an array to the variable. I am guessing but it could well be that the watch function than does not work.
Maybe you can create the sample in the same tree as my samples. I can have a look if I can fix it for you.
from c3-angular-directive.
Thanks for the quick response. Turns out if I move the initialisation out of the $http callback then this works all the time, like this:
function ($scope, $http, $routeParams, $interval) {
$scope.datapoints = [];
$scope.datacolumns = [{"id": "precipitation", "type": "bar", "name": "Daily Precipitation"}];
$scope.datax = {"id": "date"};
$http.get('/station/' + $routeParams.id).success(function (data) {
$scope.station = data;
$scope.datapoints = data.dailyPrecipitation;
console.info("Setting data points to " + JSON.stringify($scope.datapoints));
});
}]);
from c3-angular-directive.
Nice, so I can close the issue?
from c3-angular-directive.
Yes thank you
On 6 Apr 2015, at 12:39, Jettro Coenradie [email protected] wrote:
Nice, so I can close the issue?
—
Reply to this email directly or view it on GitHub.
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.