PAD Charts
All charts/Spiral

Five years of ice cream

spiral: a turn a year, every summer a dark band on the same spoke.

1 The data time/icecream.php php
<?php

  // Five years of ice cream, in thousands sold per month: every summer a peak, every year
  // a little more, and the wet summer of 2023 a dent in the pattern.

  $icecream = [];
  $months   = [ 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec' ];
  $season   = [ 0.15, 0.2, 0.35, 0.55, 0.8, 1.0, 1.15, 1.1, 0.7, 0.4, 0.2, 0.3 ];

  foreach ( range ( 2021, 2025 ) as $y => $year )
    foreach ( $months as $m => $month ) {

      $sales = 100 * ( 1 + 0.08 * $y ) * $season [$m];

      if ( $year == 2023 and $m >= 5 and $m <= 7 )
        $sales *= 0.7;

      $icecream [] = [ 'year' => $year, 'month' => $month, 'sales' => (int) round ( $sales ) ];

    }

?>
2 The chart tag time/icecream.pad pad
{chart 'spiral', data='icecream', label='month', value='sales', turn='year', title='Ice cream sold per month over five years, in thousands', width=480, height=440}
3 The result inline SVG · no JavaScript
Ice cream sold per month over five years, in thousands Jan 2021: 15; Feb 2021: 20; Mar 2021: 35; Apr 2021: 55; May 2021: 80; Jun 2021: 100; Jul 2021: 115; Aug 2021: 110; Sep 2021: 70; Oct 2021: 40; Nov 2021: 20; Dec 2021: 30; Jan 2022: 16; Feb 2022: 22; Mar 2022: 38; Apr 2022: 59; May 2022: 86; Jun 2022: 108; Jul 2022: 124; Aug 2022: 119; Sep 2022: 76; Oct 2022: 43; Nov 2022: 22; Dec 2022: 32; Jan 2023: 17; Feb 2023: 23; Mar 2023: 41; Apr 2023: 64; May 2023: 93; Jun 2023: 81; Jul 2023: 93; Aug 2023: 89; Sep 2023: 81; Oct 2023: 46; Nov 2023: 23; Dec 2023: 35; Jan 2024: 19; Feb 2024: 25; Mar 2024: 43; Apr 2024: 68; May 2024: 99; Jun 2024: 124; Jul 2024: 143; Aug 2024: 136; Sep 2024: 87; Oct 2024: 50; Nov 2024: 25; Dec 2024: 37; Jan 2025: 20; Feb 2025: 26; Mar 2025: 46; Apr 2025: 73; May 2025: 106; Jun 2025: 132; Jul 2025: 152; Aug 2025: 145; Sep 2025: 92; Oct 2025: 53; Nov 2025: 26; Dec 2025: 40 Jan 2021: 15 Feb 2021: 20 Mar 2021: 35 Apr 2021: 55 May 2021: 80 Jun 2021: 100 Jul 2021: 115 Aug 2021: 110 Sep 2021: 70 Oct 2021: 40 Nov 2021: 20 Dec 2021: 30 Jan 2022: 16 Feb 2022: 22 Mar 2022: 38 Apr 2022: 59 May 2022: 86 Jun 2022: 108 Jul 2022: 124 Aug 2022: 119 Sep 2022: 76 Oct 2022: 43 Nov 2022: 22 Dec 2022: 32 Jan 2023: 17 Feb 2023: 23 Mar 2023: 41 Apr 2023: 64 May 2023: 93 Jun 2023: 81 Jul 2023: 93 Aug 2023: 89 Sep 2023: 81 Oct 2023: 46 Nov 2023: 23 Dec 2023: 35 Jan 2024: 19 Feb 2024: 25 Mar 2024: 43 Apr 2024: 68 May 2024: 99 Jun 2024: 124 Jul 2024: 143 Aug 2024: 136 Sep 2024: 87 Oct 2024: 50 Nov 2024: 25 Dec 2024: 37 Jan 2025: 20 Feb 2025: 26 Mar 2025: 46 Apr 2025: 73 May 2025: 106 Jun 2025: 132 Jul 2025: 152 Aug 2025: 145 Sep 2025: 92 Oct 2025: 53 Nov 2025: 26 Dec 2025: 40 2021 2022 2023 2024 2025 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 15 152