The reason for this problem is a late edit while posting the code here in the forum. Did not pass a test.
How to analyze:
- the 'printed response' provided has two web page definitions. The first one has the chart included.
- extracted this first web definition to a file 'x.html' and opened with a browser, I use firefox.
- did not get the chart as described.
- open the web developer tools in firefox
- there is a prominent error message shown " Uncaught SyntaxError: '#' not followed by identifier x.html:29:97"
- clicking on the file link provided shows the mess: the comment after the data patches uses a hash '#'; needs to be a '//'.
You should change both lines in the micropython file fromto
How to analyze:
- the 'printed response' provided has two web page definitions. The first one has the chart included.
- extracted this first web definition to a file 'x.html' and opened with a browser, I use firefox.
- did not get the chart as described.
- open the web developer tools in firefox
- there is a prominent error message shown " Uncaught SyntaxError: '#' not followed by identifier x.html:29:97"
- clicking on the file link provided shows the mess: the comment after the data patches uses a hash '#'; needs to be a '//'.
You should change both lines in the micropython file from
Code:
const input = ${DATA}; # label will be replaced before sent as a response const labels = ${LABELS}; # label will be replaced before sent as a response
Code:
const input = ${DATA}; // DATA will be replaced before sent as a response const labels = ${LABELS}; // LABELS will be replaced before sent as a response
Statistics: Posted by ghp — Sun Jan 21, 2024 6:57 am