"Unknown rendered type" error with Chart in Blogger

26 views
Skip to first unread message

Nag a Drouz

unread,
Apr 17, 2020, 4:57:50 AM4/17/20
to Google Visualization API
Hello,

I am a newbie with Chart.
I use your demos to incorporate visualization in my blog (blogger).

When dealing with "line" i get the "rendered type error":


While when using 'pie' it works fine...


All 2 codes works correctly in an alone html page...

What is wrong?

Than you for help
Test_chart_Line.html

Daniel LaLiberte

unread,
Apr 17, 2020, 10:59:33 AM4/17/20
to Google Visualization API
Your chart code (in the page) appears OK except for one major problem.  You've embedded the whole <html>...</html> document inside your document.

<div class='post-body entry-content' id='post-body-2348845876793463601' itemprop='description articleBody'>
<html>
  <head>
    <!--Load the AJAX API-->
    <script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
    <script type="text/javascript">

      // Load the Visualization API and the line package.
      google.charts.load('current', {'packages':['line']});
...
  </head>

  <body>
    <!--Div that will hold the linechart_material chart-->
    <div id="linechart_material"></div>
  </body>
</html>
<div style='clear: both;'></div>

So don't do that.  A document should have only one head and one body.  I don't know exactly what is happening, but apparently your document is confused. :)



--
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 google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/5d968514-cc7f-4c77-aec7-00cde27e81c0%40googlegroups.com.


--

Nag a Drouz

unread,
Apr 20, 2020, 4:29:07 AM4/20/20
to Google Visualization API
Thank you!
You published the issue before:
If this situation is like the other one(s), you are probably loading the loader (www.gstatic.com/charts/loader.js) more than one time

Blogger, in this default template uses "loader.js" somewhere... 
With a single call to loader.js it works fine.

Best regards
Reply all
Reply to author
Forward
0 new messages