rawgraphs / rawgraphs-app

A web interface to create custom vector-based visualizations on top of RAWGraphs core
https://rawgraphs.io
Apache License 2.0
8.66k stars 1.84k forks source link

Visualization in Steamgraphchart showing incorrect results when single value gets edited #87

Closed JokinAspiazu closed 7 years ago

JokinAspiazu commented 9 years ago

Repro steps: Select example music datafile. Select Steamgraph visualization and complete the axis thing.

... we get the visualization as seen on the upper left corner.

Then edit the data, alter a single value with a value of 1000 market share.

Redo the visualization.

It is observed that the data that can be seen ordered BEFORE in time than the value that we edited changed from 50 to almost 500.

It was expected that the values from years after the edited value, still got the same values as the ones from years after the edited value.

presentation_bug

mikima commented 9 years ago

Not sure to have understood the problem. In RAW, the visualization is scaled according the maximum value. In the second visualization, data didn't change, it is scaled to fit the maximum value in the given visualization height. If you want to keep the same scale, you should increase the visualization height by ~10 times.

If I misunderstood the question, please let me know.

JokinAspiazu commented 9 years ago

The problem is not with the data that have been altered in order to test the feature. The problem seems to be with how the previous data are displayed.

Compare 8-track, Vinyl and CD in both images. Only altering the amount of vinyl to 1000 we get a 8-track display close to 500 (red square on bottom capture)

mikima commented 7 years ago

Not sure what do you mean with

close to 500 (red square on bottom capture)

If you are referring to the Y axis, you are misreading the visualization.

In the streamgraph the value (in your case, the market share) is not mapped on the y position, but on the thickness of the stream, see: https://en.wikipedia.org/wiki/Streamgraph