{"slug":"active-users-yoy","title":"Active users, year on year","job":"customers","kind":"Line, two series","summary":"This year against last on one chart, with last year dashed so the gap between them is the story.","useWhen":"Use it for any year-on-year comparison where the gap between the two lines is what people should see.","shows":["Brand kit","Dashed comparison series","Event annotation","KPI strip"],"data":{"columns":["Month","This year","Last year"],"rows":{"min":2,"max":24},"numberColumns":{"min":2,"max":2},"note":"Users in thousands (41.6) or whole (41,600)."},"altText":"Line chart of monthly active users in thousands, this year against last year. This year, a solid line, rose from 41.6k in December to 61.4k in November. Last year, dashed, went from 31.2k to 43.0k, so users are up 42.8% year on year. A marker at June shows the mobile app launch.","page":"https://www.chart-output.com/gallery/active-users-yoy","spec":"https://www.chart-output.com/gallery/active-users-yoy/spec.json","image":{"wide":{"url":"https://www.chart-output.com/gallery/active-users-yoy-wide.webp","width":1120,"height":1280,"format":"webp"},"compact":{"url":"https://www.chart-output.com/gallery/active-users-yoy-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":["Dec 25","Jan 26","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"],"datasets":[{"label":"This year","data":[41.6,42.9,44.1,46.3,47,49.8,52.4,53.9,55.7,57.1,58.2,61.4],"order":0,"borderColor":"#3c5cdd","backgroundColor":"#3c5cdd","borderWidth":4,"tension":0.3,"fill":false,"pointRadius":[0,0,0,0,0,0,0,0,0,0,0,5],"pointBackgroundColor":"#3c5cdd"},{"label":"Last year","data":[31.2,32,32.8,33.9,34.5,35.9,37.1,38,39.4,40.2,41.8,43],"order":1,"borderColor":"#4a5368","backgroundColor":"#4a5368","borderWidth":3,"borderDash":[8,6],"tension":0.3,"fill":false,"pointRadius":0}]},"annotations":[{"x":"Jun","label":"Mobile app","color":"#b4461a"}],"options":{"plugins":{"tooltip":{"enabled":false}},"scales":{"x":{"grid":{"display":false},"border":{"color":"#e3e7ef"},"ticks":{"color":"#4a5368","maxRotation":0,"autoSkip":true,"maxTicksLimit":6}},"y":{"beginAtZero":false,"grace":"8%","border":{"display":false},"grid":{"color":"#e3e7ef","drawTicks":false},"ticks":{"color":"#4a5368","padding":8,"maxTicksLimit":5}}}},"kpiStrip":[{"label":"Active users, Nov","value":"61.4k","color":"#1d2640"},{"label":"Vs last year","value":"+42.8%","color":"#13703f"},{"label":"Added in a year","value":"+18.4k","color":"#1d2640"}],"footer":{"left":"Source: product analytics","borderTop":true},"header":{"title":"Active users","subtitle":"Monthly, thousands, vs last year","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":["Dec 25","Jan 26","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"],"values":[[41.6,42.9,44.1,46.3,47,49.8,52.4,53.9,55.7,57.1,58.2,61.4],[31.2,32,32.8,33.9,34.5,35.9,37.1,38,39.4,40.2,41.8,43]],"series":["This year","Last year"]},"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":"Active users","subtitle":"Monthly, thousands, vs last year"},"legend":{"display":true,"position":"top","style":"line","fontSize":13},"data":{"labels":["Dec 25","Jan 26","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"],"datasets":[{"label":"This year","data":[41.6,42.9,44.1,46.3,47,49.8,52.4,53.9,55.7,57.1,58.2,61.4],"order":0,"borderColor":"#3c5cdd","backgroundColor":"#3c5cdd","borderWidth":4,"tension":0.3,"fill":false,"pointRadius":[0,0,0,0,0,0,0,0,0,0,0,5],"pointBackgroundColor":"#3c5cdd"},{"label":"Last year","data":[31.2,32,32.8,33.9,34.5,35.9,37.1,38,39.4,40.2,41.8,43],"order":1,"borderColor":"#4a5368","backgroundColor":"#4a5368","borderWidth":3,"borderDash":[8,6],"tension":0.3,"fill":false,"pointRadius":0}]},"annotations":[{"x":"Jun","label":"Mobile app","color":"#b4461a"}],"options":{"plugins":{"tooltip":{"enabled":false}},"scales":{"x":{"grid":{"display":false},"border":{"color":"#e3e7ef"},"ticks":{"color":"#4a5368","maxRotation":0,"autoSkip":true,"maxTicksLimit":6}},"y":{"beginAtZero":false,"grace":"8%","border":{"display":false},"grid":{"color":"#e3e7ef","drawTicks":false},"ticks":{"color":"#4a5368","padding":8,"maxTicksLimit":5}}}},"kpiStrip":[{"label":"Active users, Nov","value":"61.4k","color":"#1d2640"},{"label":"Vs last year","value":"+42.8%","color":"#13703f"},{"label":"Added in a year","value":"+18.4k","color":"#1d2640"}],"footer":{"left":"Source: product analytics","borderTop":true}},"withoutBrand":{"type":"line","width":560,"height":640,"textScale":1.8,"format":"png","devicePixelRatio":2,"header":{"title":"Active users","subtitle":"Monthly, thousands, vs last year"},"legend":{"display":true,"position":"top","style":"line","fontSize":13},"data":{"labels":["Dec 25","Jan 26","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov"],"datasets":[{"label":"This year","data":[41.6,42.9,44.1,46.3,47,49.8,52.4,53.9,55.7,57.1,58.2,61.4],"order":0,"borderColor":"#3c5cdd","backgroundColor":"#3c5cdd","borderWidth":4,"tension":0.3,"fill":false,"pointRadius":[0,0,0,0,0,0,0,0,0,0,0,5],"pointBackgroundColor":"#3c5cdd"},{"label":"Last year","data":[31.2,32,32.8,33.9,34.5,35.9,37.1,38,39.4,40.2,41.8,43],"order":1,"borderColor":"#4a5368","backgroundColor":"#4a5368","borderWidth":3,"borderDash":[8,6],"tension":0.3,"fill":false,"pointRadius":0}]},"annotations":[{"x":"Jun","label":"Mobile app","color":"#b4461a"}],"options":{"plugins":{"tooltip":{"enabled":false}},"scales":{"x":{"grid":{"display":false},"border":{"color":"#e3e7ef"},"ticks":{"color":"#4a5368","maxRotation":0,"autoSkip":true,"maxTicksLimit":6}},"y":{"beginAtZero":false,"grace":"8%","border":{"display":false},"grid":{"color":"#e3e7ef","drawTicks":false},"ticks":{"color":"#4a5368","padding":8,"maxTicksLimit":5}}}},"kpiStrip":[{"label":"Active users, Nov","value":"61.4k","color":"#1d2640"},{"label":"Vs last year","value":"+42.8%","color":"#13703f"},{"label":"Added in a year","value":"+18.4k","color":"#1d2640"}],"footer":{"left":"Source: product analytics","borderTop":true}}}}