{"version":"1.0","type":"rich","title":"xMR char calc v3 -- changing initial condition for mr avg","description":"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.","provider_name":"VizHub AI Studio","provider_url":"https://vizhub.com","html":"<iframe src=\"https://vizhub.com/viz/37a81507fa8a4cfcac4154d834d24b71?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"0\"></iframe>","width":960,"height":500,"cache_age":3600}