PageSourceSearch

https://sifrovacky.cz/assets/stats/views/charts/membership-count-7197bc4f.js

js sifrovacky.cz collected 2026-10-05 02:17:12 UTC 1,005 bytes, 42 lines download raw bytes

1import Highcharts from 'highcharts'
2
3import 'stats/highcharts-defaults'
4/*
5 * decaffeinate suggestions:
6 * DS102: Remove unnecessary code created because of implicit returns
7 * Full docs: https://github.com/decaffeinate/decaffeinate/blob/main/docs/suggestions.md
8 */
9const url = location.pathname + '.json' + location.search
10fetch(url)
11  .then((response) => response.json())
12  .then((stats) => {
13    const data = stats.map((stat) => ({
14      x: parseInt(stat.year),
15      y: stat.count
16    }))
17
18    Highcharts.chart('membership-count-chart', {
19      chart: { type: 'column' },
20      title: { text: 'Počet účastí za rok' },
21      xAxis: {
22        type: 'category',
23        labels: {
24          rotation: -45
25        }
26      },
27      legend: false,
28      yAxis: {
29        min: 0,
30        title: { text: 'Počet účastí' }
31      },
32      series: [
33        {
34          data,
35          dataLabels: {
36            enabled: true,
37            format: '{point.y:.0f}'
38          }
39        }
40      ]
41    })
42  })

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.