Skip to main content
100%

xMR char calc v3 -- changing initial condition for mr avg

✓ Published1🌍 Public
AAnimesh Nautiyal
Last edited May 15, 2021
Created on May 4, 2021
Forked from xMR char calc v2

This visualization demonstrates a statistical process control chart that calculates upper and lower control limits for a time series dataset using an XMR (moving range) method with a dynamic initial condition. The code, written in D3 v6, loads data from a CSV file and computes moving ranges, averages, and breakpoints to detect shifts in the process. It uses D3’s `csv`, `mean`, `sum`, and `select` APIs, while the custom functions `calculateMR`, `calculateMinimum`, and `calculateBreakPoint` implement the control limit logic. The chart updates as the initial condition for the moving average changes, revealing how early data points influence the bounds.

AI-generated description

A demonstration of how to start using D3 version 6.

MIT Licensed

Similar vizzes