Thank you! Working :-) On Saturday, 23 April 2022 at 02:25:25 UTC+1 Ray Thomas wrote:
> You shouldn't be using Word or any other word processor to write HTML > files as most do not produce clean code. Copy and paste what you've got > into something like Notepad and save that as an HTML file. > > The other thing is that it sounds like you are running the file locally > - that is a file hosted on your computer and then run in a browser. What > you are running into is probably something called CORS - Cross-Origin > Resource Sharing. That's a set of rules in browsers designed to protect > your computer from malicious attacks. Google Charts code run locally will > trigger the protection because the browser knows it's running a local file > but then it's trying to download files from another domain, even if it is > Google's. > > Most browsers have a developer mode. Press F12 and you will probably see > the messages saying exactly why the chart is not displaying. > > Try uploading the file to a web server. Failing that you can test it by > pasting the code into something like CodePen or JSFiddle. You can even go > any of the W3Shools tutorials, remove their code and copy and paste your > own, then click Run to test it. > > CodePen, JSFiddle and the like are more flexible but this is supposed to > be a CSS tutorial in W3Schools but it's running the example from > https://developers.google.com/chart/interactive/docs/quick_start > > [image: w3schools-charts-api.jpg] > > On Friday, April 22, 2022 at 7:33:28 PM UTC-4 JC wrote: > >> Apologies if I am asking a very basic question, but this is my first time >> using Google Charts. I have coded everything for my timeline as instructed >> in the guide. >> >> However my challenge is that I cannot get it to show me the chart - if I >> save it as an html from word, then open it using a browser it just shows me >> my coding. >> >> So how do I look at my chart? >> >> Thanks for any help! >> > -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/2a5e1a7c-50cf-4b6f-91c9-242f5e4dd8c2n%40googlegroups.com.
