{"slug":"win-rate-trend","title":"Win rate with a rolling average","job":"sales","kind":"Line with moving average","summary":"Weekly win rate with a four-week average on top, so the trend shows through the week-to-week noise.","useWhen":"Use it when the week-to-week numbers are noisy and the trend is what you want people to see.","shows":["Brand kit","Computed second series","Event annotation","KPI strip"],"data":{"columns":["Week","Win rate"],"rows":{"min":2,"max":26},"numberColumns":{"min":1,"max":1},"note":"Win rate as a percentage, like 31."},"altText":"Line chart of weekly win rate over 12 weeks from Aug 10 to Oct 26. The weekly rate is noisy, between 22% and 41%; a heavier line shows the four-week average climbing from 24% to 37%. A marker at Sep 14 shows when the new demo script started.","page":"https://www.chart-output.com/gallery/win-rate-trend","spec":"https://www.chart-output.com/gallery/win-rate-trend/spec.json","image":{"wide":{"url":"https://www.chart-output.com/gallery/win-rate-trend-wide.webp","width":1120,"height":1280,"format":"webp"},"compact":{"url":"https://www.chart-output.com/gallery/win-rate-trend-compact.webp","width":720,"height":1240,"format":"webp"}},"endpoint":{"method":"POST","url":"https://www.chart-output.com/api/v1/render","auth":"Authorization: Bearer <your API key>","body":"The JSON request, as application/json","freeRendersPerMonth":1000},"request":{"type":"line","width":560,"height":640,"textScale":1.8,"format":"png","devicePixelRatio":2,"legend":{"display":true,"position":"top","style":"line","fontSize":13},"data":{"labels":["Aug 10","Aug 17","Aug 24","Aug 31","Sep 7","Sep 14","Sep 21","Sep 28","Oct 5","Oct 12","Oct 19","Oct 26"],"datasets":[{"label":"Weekly win rate","data":[24,31,22,28,33,26,35,30,38,32,37,41],"order":1,"borderColor":"#4a5368","backgroundColor":"#4a5368","borderWidth":2,"tension":0.2,"pointRadius":3.5,"pointBackgroundColor":"#4a5368"},{"label":"4-week average","data":[24,27.5,25.7,26.3,28.5,27.3,30.5,31,32.3,33.8,34.3,37],"order":0,"borderColor":"#3c5cdd","backgroundColor":"#3c5cdd","borderWidth":5,"borderDash":[],"tension":0.3,"pointRadius":[0,0,0,0,0,0,0,0,0,0,0,6],"pointBackgroundColor":"#3c5cdd"}]},"annotations":[{"x":"Sep 14","label":"New demo script","color":"#b4461a"}],"options":{"plugins":{"tooltip":{"enabled":false}},"scales":{"x":{"grid":{"display":false},"border":{"color":"#e3e7ef"},"ticks":{"color":"#4a5368","maxRotation":0,"autoSkip":true,"maxTicksLimit":5}},"y":{"beginAtZero":false,"grace":"8%","border":{"display":false},"grid":{"color":"#e3e7ef","drawTicks":false},"ticks":{"color":"#4a5368","padding":8,"maxTicksLimit":5}}}},"kpiStrip":[{"label":"Latest week","value":"41%","color":"#1d2640"},{"label":"4-week average","value":"37%","color":"#1d2640"},{"label":"Trend, 4 weeks","value":"+6.0 pts","color":"#13703f"}],"footer":{"left":"Source: CRM","borderTop":true},"header":{"title":"Win rate","subtitle":"Weekly, % won, with a 4-week average","logoUrl":"https://www.chart-output.com/gallery/acme-logo.png","logoHeight":22},"theme":{"backgroundColor":"#ffffff","textPrimary":"#1d2640","textSecondary":"#4a5368","gridColor":"#e3e7ef","mode":"light"}},"sampleData":{"labels":["Aug 10","Aug 17","Aug 24","Aug 31","Sep 7","Sep 14","Sep 21","Sep 28","Oct 5","Oct 12","Oct 19","Oct 26"],"values":[[24,31,22,28,33,26,35,30,38,32,37,41]],"series":["Win rate"]},"howToChangeIt":"Replace data.labels and each data.datasets[].data with your numbers, then update header and kpiStrip to match. Or paste your numbers on the chart page, which writes the request for you.","brandKitRequest":{"note":"The exact request behind the image. \"brand\": \"acme\" is a demo brand kit on this site's own account; use your own kit slug, or leave it out.","request":{"type":"line","width":560,"height":640,"textScale":1.8,"format":"png","devicePixelRatio":2,"brand":"acme","header":{"title":"Win rate","subtitle":"Weekly, % won, with a 4-week average"},"legend":{"display":true,"position":"top","style":"line","fontSize":13},"data":{"labels":["Aug 10","Aug 17","Aug 24","Aug 31","Sep 7","Sep 14","Sep 21","Sep 28","Oct 5","Oct 12","Oct 19","Oct 26"],"datasets":[{"label":"Weekly win rate","data":[24,31,22,28,33,26,35,30,38,32,37,41],"order":1,"borderColor":"#4a5368","backgroundColor":"#4a5368","borderWidth":2,"tension":0.2,"pointRadius":3.5,"pointBackgroundColor":"#4a5368"},{"label":"4-week average","data":[24,27.5,25.7,26.3,28.5,27.3,30.5,31,32.3,33.8,34.3,37],"order":0,"borderColor":"#3c5cdd","backgroundColor":"#3c5cdd","borderWidth":5,"borderDash":[],"tension":0.3,"pointRadius":[0,0,0,0,0,0,0,0,0,0,0,6],"pointBackgroundColor":"#3c5cdd"}]},"annotations":[{"x":"Sep 14","label":"New demo script","color":"#b4461a"}],"options":{"plugins":{"tooltip":{"enabled":false}},"scales":{"x":{"grid":{"display":false},"border":{"color":"#e3e7ef"},"ticks":{"color":"#4a5368","maxRotation":0,"autoSkip":true,"maxTicksLimit":5}},"y":{"beginAtZero":false,"grace":"8%","border":{"display":false},"grid":{"color":"#e3e7ef","drawTicks":false},"ticks":{"color":"#4a5368","padding":8,"maxTicksLimit":5}}}},"kpiStrip":[{"label":"Latest week","value":"41%","color":"#1d2640"},{"label":"4-week average","value":"37%","color":"#1d2640"},{"label":"Trend, 4 weeks","value":"+6.0 pts","color":"#13703f"}],"footer":{"left":"Source: CRM","borderTop":true}},"withoutBrand":{"type":"line","width":560,"height":640,"textScale":1.8,"format":"png","devicePixelRatio":2,"header":{"title":"Win rate","subtitle":"Weekly, % won, with a 4-week average"},"legend":{"display":true,"position":"top","style":"line","fontSize":13},"data":{"labels":["Aug 10","Aug 17","Aug 24","Aug 31","Sep 7","Sep 14","Sep 21","Sep 28","Oct 5","Oct 12","Oct 19","Oct 26"],"datasets":[{"label":"Weekly win rate","data":[24,31,22,28,33,26,35,30,38,32,37,41],"order":1,"borderColor":"#4a5368","backgroundColor":"#4a5368","borderWidth":2,"tension":0.2,"pointRadius":3.5,"pointBackgroundColor":"#4a5368"},{"label":"4-week average","data":[24,27.5,25.7,26.3,28.5,27.3,30.5,31,32.3,33.8,34.3,37],"order":0,"borderColor":"#3c5cdd","backgroundColor":"#3c5cdd","borderWidth":5,"borderDash":[],"tension":0.3,"pointRadius":[0,0,0,0,0,0,0,0,0,0,0,6],"pointBackgroundColor":"#3c5cdd"}]},"annotations":[{"x":"Sep 14","label":"New demo script","color":"#b4461a"}],"options":{"plugins":{"tooltip":{"enabled":false}},"scales":{"x":{"grid":{"display":false},"border":{"color":"#e3e7ef"},"ticks":{"color":"#4a5368","maxRotation":0,"autoSkip":true,"maxTicksLimit":5}},"y":{"beginAtZero":false,"grace":"8%","border":{"display":false},"grid":{"color":"#e3e7ef","drawTicks":false},"ticks":{"color":"#4a5368","padding":8,"maxTicksLimit":5}}}},"kpiStrip":[{"label":"Latest week","value":"41%","color":"#1d2640"},{"label":"4-week average","value":"37%","color":"#1d2640"},{"label":"Trend, 4 weeks","value":"+6.0 pts","color":"#13703f"}],"footer":{"left":"Source: CRM","borderTop":true}}}}