Chartjs-Chart.js; Chart is not showing time and imported data.

0👍

You are missing echo the function value, try replace this:

let priceFromFunction = ["<?php golemPrice();?>"];

to

let priceFromFunction = ["<?php echo golemPrice() ?>"];

Leave a comment