Questions tagged [waterfall]

Waterfall is an abstraction model for software design which translates requirements into lists of simple routines and arranges them in a sequence of phases based on dependencies.

In Javascript, Elan Shanker's async-waterfall package organizes series of functions with callback completions into waterfalls. It runs an array of functions in series, each passing their results to the next in the array. However, if any of the functions pass an error to the callback, the next function is not executed and the main callback is immediately called with the error.

In chart design, a waterfall chart is a form of data visualization that helps in understanding the cumulative effect of sequentially introduced positive or negative values. These intermediate values can either be time based or category based.

217 questions
3
votes
1 answer

Waterfall Highchart to start some of the columns in between the series with 0 y-axis

Can anyone please help me to change the behaviour of waterfall highchart to show graph like in screenshot? Actually I know about isSum and isIntemediateSum property. Using which I can start some of the columns in waterfall with 0 y-axis. But this…
3
votes
1 answer

can I use async.waterfall inside async.parallel?

I want to call two functions and get the results in parallel but one of the function's results needed to be adapted. So the function structure is: function test(cb) { async.parallel({ func1: function foo(cb1) { cb(null, {}); }, …
JudyJiang
  • 2,207
  • 6
  • 27
  • 47
3
votes
1 answer

Is there any harm to not calling the final callback in an Async waterfall?

async.waterfall( [ function(cb){ //do some stuff and then never call cb leaving the async waterfall unfinished },...], function(err,result){ //we only get here if the cb is called above and it never is } ) Is there any harm in…
Yevgeny Simkin
  • 27,946
  • 39
  • 137
  • 236
2
votes
1 answer

waterfall plot using ribbon

I have a series of spectral data which I want to plot in a waterfall style plot. waterfall itsself is no that usefull, because the thin lines have too many differences in each spectrum, that is is not very usefull I therefore want to try the ribbon…
Matthias Pospiech
  • 3,130
  • 18
  • 55
  • 76
2
votes
1 answer

How do I show multiple years on a plotly waterfall chart using R

I'm working on making a waterfall chart to show the changes across multiple years using the same categories (i.e. buckets of change). I run into issues with my categories having the same name (growth, decline, new, lost) as the output will aggregate…
2
votes
4 answers

Promise chain continues after rejection

I'm having trouble to properly catch an error/reject in a promise chain. const p1 = () => { return new Promise((resolve, reject) => { console.log("P1"); resolve(); }); }; const p2 = () => { return new Promise((resolve,…
Marc
  • 2,920
  • 3
  • 14
  • 30
2
votes
3 answers

stacked waterfall charts in highcharts

We have a requirement for stacked waterfall charts (we are using highcharts.com). http://fiddle.jshell.net/8JP8T/ gives an option for creating waterfall charts but we need to create stacks. Anyone has done this before? Thanks !!
toamitkumar
  • 39
  • 1
  • 5
2
votes
1 answer

Using for loop with async in nodejs

I have connected with mongodb and nodejs. I have question about sav query results to list. results = []; for(i = 0; i
mings
  • 31
  • 6
2
votes
0 answers

spotfire - is there a way to create stacked water fall chart?

In spotfire can we create a waterfall chart with stacked bars? Each bar should be stacked with a diff column Do we have this option in Spotfire?
BULB
  • 143
  • 4
  • 13
2
votes
2 answers

Node.js server waterfall error TypeError: Cannot read property 'Symbol(Symbol.toStringTag)' of undefined

I am writing a server with two functions, one using the output of another function. When the server runs, it gives an error: TypeError: Cannot read property 'Symbol(Symbol.toStringTag)' of undefined at isAsync…
2
votes
0 answers

duplex stream getting changed in callback:node js

I have a code where I am getting a duplex stream and in that function I call a callback which return me the values from redis. function (index, arr, null, callback) { const streamObject = stream; const Id =…
user3649361
  • 944
  • 4
  • 20
  • 40
2
votes
0 answers

Slow TTFB at Cloudflare with Heroku server

I'm hosting my site at Heroku SaaS and something weird is happening with the Waterfall, to be specific the TTFB number. When accessing the site through the Heroku dns, I get a excellent TTFB, ~200ms. But, accessing using the Cloudflare DNS, the TTFB…
2
votes
3 answers

how to refactor waterfall .then()

This code here loads data using actions and would be series, but its going to be hard to edit this code add another API load, and the syntax is not clear. this.props.loadNutMatrixes({perPage:'all'}).then(()=>{ …
2
votes
1 answer

Highcharts - column chart with drilldown to waterfall

I have a strange behavior with my drill down to a waterfall chart. My middle column which is a negative value is not positioned on the top, instead it is going from zero down. I have taken the exact same configuration and applied it to a first level…
mr carl
  • 571
  • 2
  • 6
  • 20
2
votes
1 answer

Node async waterfall callback was already called

I'm trying to read some files from dir with async.waterfall, it seems to me that I'm doing stuff right, but I get the specified error and the readData function is never called. What's wrong? var fs = require("fs"); var async = require("async"); var…
tristantzara
  • 5,597
  • 6
  • 26
  • 40
1 2
3
14 15