Hello, here is an example code on how to use Chart.js, you need to copy the code itself and change container id to “chart” Step-by-step guide | Chart.js
Sorry, not clear for me.
Also the URL to chartjs.org doesn’t work (I get an error 404 in the browser).
What I tried to to:
In a Page I made a new “/Embed”, choosing “Chart”.
In the now appearing field “Enter embed code for Chart” I pasted the full code from inside your codebox.
(Not just the visible part from the code box, but the full code’s lenght.)
But this doesn’t work.
What do you mean with “you need to change container id”?
Edit: Now it works. The chart appears after clicking into the empty area for it.
Seems the new Embeds stuck sometimes.
Edit 2: The URL also works after removing the colon from it’s right end.
How can I read the numerical value of a relation in several objects with a date as the title for the data series?
The Object type is “Diary”.
The objects have the name {year}-{month}-{day} (e.g. 2024-01-13).
The relation (# number) to the visualisation in chart.js is called „powerconsumption".
Can I filter the readout so that I only read out the objects with “2023-*”?
I do not know how to translate their code examples into JS code yet, but here is a link to show the actual js code that generates charts: Step-by-step guide | Chart.js
Same for me. I tried many times with graph from the graph.js site and with some created by me. But when I paste only a white block appear. The code posted here is working but the other from official graph.js docs or the one I made are not working
Same for me.
The code @Razor has posted in the startpost works.
But the same code, copied from graph.js website, doesn’t work.
I don’t get it why.
Also pasting with Ctrl + Shift + v makes no difference. The code from the official website doesn’t work, although identical with Razor’s example.
I tried to copy the code with Firefox as well as with Brave. Nothing works.
It also doesn’t matter how I copy the code (using the copy button or marking the code in the box with the mouse and pressing Ctrl + c).
Edit:
I also tried to copy and paste both codes separate in Notepad and saving it as utf-8.
Then closing Notepad, starting it again, loading the codes, copy them in the clipboard, pasting them.
Same result: the code Razor has posted works, the other one doesn’t.
??? ???
Change the id ‘acquisitions’ to ‘chart’ and it will work, container for charts is the same for all charts while examples on the website come with different ids.