Skip to main content
100%

D3 v4 Stacked Bar Chart with Negative Values - CFNAI Data

✓ Published0🌍 Public
TThanaporn-sk
Last edited Jul 2, 2019
Created on Jul 2, 2019

This stacked bar chart visualizes the Chicago Fed National Activity Index (CFNAI), breaking down monthly economic data into four component categories that can be either positive or negative. The bars are stacked to show the contribution of production, employment, consumption, and sales components to the overall index. A black line overlays the chart to display the three-month moving average of the total CFNAI values. Built with D3 v4, the visualization uses SVG rendering with `d3.scaleTime`, `d3.scaleLinear`, and `d3.line` to position bars and draw the trend line, with data loaded from a JSON file.

AI-generated description

##D3 v4 Stacked Bar Chart with Negative Values

A #d3js stacked bar chart that supports a mix of positive and negative values.

Data is from the Chicago Fed National Activity Index

The line represents the 3 month moving average of the compiled CFNAI components.

forked from <a href='http://bl.ocks.org/WillTurman/'>WillTurman</a>'s block: <a href='http://bl.ocks.org/WillTurman/9c4142944f6132855fd318350f552b7b'>D3 v4 Stacked Bar Chart with Negative Values - CFNAI Data</a>

mit Licensed

Similar vizzes