PageSourceSearch

https://santigiraldo.com/wp-content/plugins/rometheme-for-elemento…/Elements/assets/js/bar_chart.js?ver=2.1.5

js santigiraldo.com collected 2026-10-02 21:19:19 UTC 1,014 bytes, 42 lines download raw bytes

1jQuery(window).on("elementor/frontend/init", function () {
2  elementorFrontend.hooks.addAction(
3    "frontend/element_ready/rkit-bar-chart.default",
4    function ($scope, $) {
5      var $chart = $scope.find("#barChart");
6      var ctx = $chart[0].getContext("2d");
7
8      var labels = $chart.data("label");
9      var datasets = $chart.data("datasets");
10      var scales = $chart.data("scales");
11      var legend = $chart.data("legend");
12
13      var data = {
14        labels: labels,
15        datasets: [datasets],
16      };
17
18      var options = {
19        responsive: false,
20        maintainAspectRatio: true,
21        scales: scales,
22        plugins: {
23          legend: legend,
24        },
25      };
26
27      var myChart = new Chart(ctx, {
28        type: "bar",
29        data: data,
30        options: options,
31      });
32
33      myChart.resize();
34      // Observe element resize
35      const resizeObserver = new ResizeObserver(() => {
36        myChart.resize();
37      });
38
39      resizeObserver.observe($scope[0]);
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.