Cast your bread upon the waters
Blimey, what a great end-of-year gift I have received. Professor Von Explaino heardand gave me almost exactly what I was hoping for in his post .
He calls that “the fun part“. I call it the essential part, which to be honest I wasn’t able to find anywhere else.
I can now begin to see a way forward to my holy grail, which is to keep all the data in a single file that then gets inserted into the page before being processed by chartist.js.
A remaining big question, though, is this: the Prof. draws the chart inside the function he created. I got stuck because I thought I had to create the data objects in a function and then return them to the chart. So what exactly does the
return true; do that is different from the
return: false; that happens if the script cannot find the table?
I’m guessing it could be used to display an error message for false, but why does it need to return anything if it has worked?