Comments (3)
I have enabled the showValues value on the line series. Now the values of the line are drawn in the chart, but the line is not visible.
from angularjs-fusioncharts.
Hi @GuusPunt,
Can you provide samples code to produce the same at our end?
from angularjs-fusioncharts.
Hi @rousan .
I'm quite new to github, in which form would be the best to provide the sample code?
PS:
The charts draw perfect when i start an timer in the angularjs controller init function instead of calling a service and setting the response instant to the datasource of the chart. My problems is kind of solved but im still wondering what causes the difference between the two differents approaches as shown below.
---- Line not drawn, bars drawn ----
function initController() {
CashflowService.GetCurrentRateChart('2018')
.then(function(result){
if(result.success){
vm.currentRateChart.dataset[0].data = result.incoming;
vm.currentRateChart.dataset[1].data = result.outgoing;
vm.currentRateChart.dataset[2].data = result.cashisking;
}
});
}
---- Perfectly working example ----
function initController() {
startUpdatingCharts();
}
var updateCharts;
function startUpdatingCharts (){
updateCharts = $interval(function() {
updateCurrentRate();
}, 1000);
}
$scope.stopUpdatingCharts = function() {
if (angular.isDefined(updateCharts)) {
$interval.cancel(updateCharts);
updateCharts = undefined;
}
};
$scope.$on('$destroy', function() {
// Make sure that the interval is destroyed too
$scope.stopUpdatingCharts();
});
function updateCurrentRate(){
console.log("updating current rate chart");
CashflowService.GetCurrentRateChart('2018')
.then(function(result){
if(result.success){
vm.currentRateChart.dataset[0].data = result.incoming;
vm.currentRateChart.dataset[1].data = result.outgoing;
vm.currentRateChart.dataset[2].data = result.cashisking;
}
});
}
from angularjs-fusioncharts.
Related Issues (20)
- Bower.json and releases HOT 7
- Compatible with latest Fusioncharts 3.9.0 HOT 1
- ConfigureLink for Drill-down chart HOT 4
- doughnut2d is rendering transparent fill HOT 4
- Supply data using .feedData() HOT 4
- barchart not rendering with contentString with Google Maps HOT 3
- Best practice for loading multiple( more than 10 ) pie/zoomline in (fusion chart js API + Angular js) HOT 1
- Events are not working if inside template of angularjs component HOT 1
- The hidden fusionchart doesn't update HOT 1
- How can I change the attribute in dataset of Fusionchart? HOT 3
- state change when chart is in hidden tab HOT 1
- Question about using JSON data retrieved from the server HOT 1
- Uncaught TypeError: Cannot read property 'nodeType' of null HOT 3
- Pie charts are black on Safari and Firefox HOT 1
- Create Package : Price and validity is accepting negative value.
- Disposing logic HOT 4
- How Can I send a data from a chart to another chart?
- Country Map not centered HOT 2
- Grunt is listed as a production dependency HOT 1
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 angularjs-fusioncharts.