Google Charts not working on IE

114 views
Skip to first unread message

Ilya Shulim

unread,
Feb 13, 2020, 1:26:53 PM2/13/20
to Google Visualization API
I am experiencing an issue with displaying google charts on IE 11. Below code works on Mozilla and Chrome but not on IE.

<head>
  <script src="https://www.gstatic.com/charts/loader.js"></script>
  <script>
    google.charts.load('current', {packages: ['corechart']});
    google.charts.setOnLoadCallback(drawChart);

    function drawChart() {
      // Define the chart to be drawn.
      var data = new google.visualization.DataTable();
      data.addColumn('string', 'Element');
      data.addColumn('number', 'Percentage');
      data.addRows([
        ['Nitrogen', 0.78],
        ['Oxygen', 0.21],
        ['Other', 0.01]
      ]);

      // Instantiate and draw the chart.
      var chart = new google.visualization.PieChart(document.getElementById('myPieChart'));
      chart.draw(data, null);
    }
  </script>
</head>
<body>
  <!-- Identify where the chart should be drawn. -->
  <div id="myPieChart"/>
</body>

Can anyone suggest what could be the possible cause of this behavior? 


Thanks in advance.

Daniel LaLiberte

unread,
Feb 13, 2020, 2:24:59 PM2/13/20
to Google Visualization API
Hi Ilya,

I can't be sure but I would suspect there is some incompatibility with IE 11 and the newer Array functions that we are using now.   I don't have access to IE 11 at the moment, so if you could post some details about the error that is resulting (which should be visible in your browser's debugger), that might be enough for me to narrow it down.   I assume this snippet is your entire code, and there is no other library you are loading, such as prototype.

--
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/14dd0b9e-3f36-4f74-a4b2-8d68a248e975%40googlegroups.com.


--

Shulimovich, Ilya

unread,
Feb 13, 2020, 2:43:25 PM2/13/20
to google-visua...@googlegroups.com, Manda, Nagaram, Leviashvili, Gabriel

Thank you Daniel for the prompt response.

 

The snippet provided is the entire code of the web page I am trying to display.

 

IE debugger console shows 2 errors:

 

SCRIPT1010: Expected identifier

loader.js (15,397)

 

SCRIPT5009: 'google' is undefined

dailyHaircutAnalyticsAction.do (6,5)

 

The 2nd error is pointing to the following statement

 

google.charts.load('current', {packages: ['corechart']});

 

 

Classification: Internal Use Only

From: 'Daniel LaLiberte' via Google Visualization API <google-visua...@googlegroups.com>
Sent: Thursday, February 13, 2020 2:24 PM
To: Google Visualization API <google-visua...@googlegroups.com>
Subject: Re: [visualization-api] Google Charts not working on IE

 

*This email originated from outside the Firm*

 


CONFIDENTIAL
An electronic communication(s)/message(s), including its contents and attachments, if any, may contain privileged or confidential information, or may be otherwise protected by work product immunity or other legal rules. No confidentiality or privilege is waived by any erroneously transmitted communication. Accessing, copying or re-using of information by non-intended or non-authorized recipients is prohibited. If you are not the named recipient please notify the sender and immediately delete this communication. You may not disseminate, distribute, or forward this message or disclose its contents to anybody else. Copyright and any other intellectual property rights in its contents are the sole property of Cantor Fitzgerald L.P. and its affiliates (collectively, “Cantor Fitzgerald,” “we,” or “us”).

MAY CONTAIN ERRORS AND/OR VIRUSES
Electronic communications/messages cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of such transmission. If verification is required, please request a hard-copy version.

Although we routinely screen for viruses, recipients should check this communications/message and any attachments for viruses. We make no representation or warranty as to the absence of viruses in this e-mail or any attachments. Please note that, to ensure regulatory compliance and for the protection of our customers and business, we may monitor and read e-mails sent to and from server(s) used by us.

INFORMATION PURPOSES ONLY
The information contained in this electronic communication/message and any attachments is for information purposes, and should not be regarded as an offer to sell, or a solicitation of an offer to buy, any security in any jurisdiction where such an offer or solicitation would be in violation of any local laws. It does not constitute a recommendation or take into account the particular investment objectives, financial conditions, or needs of specific investors. Any prices or data contained herein are indicative and do not represent where the underlying instrument(s) may trade in the market at any given point in time, nor does such price(s) represent a determination of the underlying value of a particular instrument(s). This information may be changed at any time without notice or obligation to update. Cantor Fitzgerald accepts no liability for any loss (whether direct, indirect or consequential) that may arise from any use of the information contained herein or derived herefrom. Reliance may not be placed on trade confirmations issued other than by our Operations Department.

RETENTION
Please note that any electronic communications/messages conducted within or through Cantor Fitzgerald’s systems is subject to monitoring, review, retention, and external production.

Cantor Fitzgerald & Co. is a broker-dealer registered with the U.S. Securities and Exchange, a member of FINRA and a member of SIPC, and an affiliate of Cantor Fitzgerald Investment Advisers, L.P., which is an investment adviser registered with the U.S. Securities and Exchange Commission.

Cantor Fitzgerald Securities ("CFS") is a swap dealer provisionally registered with the Commodity Futures Trading Commission and is a member of the National Futures Association as a swap firm and introducing broker.

Cantor Fitzgerald Europe ("CFE") is authorised and regulated by the Financial Conduct Authority ("FCA"). CFE is an unlimited liability company incorporated under the laws of England (company number 2505767) and its VAT registration number is 577 406809. CFE's registered office is at 12 Endeavour Square, London, E20 1JN. For any issues arising from this email please reply to the sender.

CFE appears on the FCA register under no 149380. The FCA register appears at www.fca.org.uk/register. The FCA is a financial services industry regulator in the United Kingdom and is located at 12 Endeavour Square, London, E20 1JN.

An individuals’ personal data under the GDPR - For further information about the way Cantor Fitzgerald entities (and relevant affiliates) within the European Economic Area (EEA) use your personal data please see our Third Party Privacy Notice at www.cantor.com/global/europe/notices/or at such other place as we may provide notice of from time to time.

Marketing within the European Economic Area - Cantor Fitzgerald entities within the EEA may contact you about industry news, offers and information relating to their products and services which they think would be of interest to you. You can tell them you do not wish to receive such communications by forwarding the communication to the following applicable regional address:

US - US...@Cantor.com
EMEA - D...@Cantor.co.uk

For additional disclosures, please visit http://www.cantor.com/disclosures/

Alberto Valentino Macchietto Della Rossa

unread,
Feb 17, 2020, 7:08:24 PM2/17/20
to Google Visualization API
Estoy teniendo un problema parecido, utilizando el google chrome, sale un mensaje "unknown render type"

Wanderley Neto

unread,
Feb 18, 2020, 3:13:21 PM2/18/20
to Google Visualization API
I have the same problem!!
Can someone help me?

Daniel LaLiberte

unread,
Feb 19, 2020, 10:10:05 AM2/19/20
to Google Visualization API, Manda, Nagaram, Leviashvili, Gabriel
Ilya,

I created a jsfiddle with your code sample, and it loaded fine for me in IE 11.   What do you get when you visit https://jsfiddle.net/dlaliberte/n0wm2crd/1/ ?

Message has been deleted
Message has been deleted

Douglas Holz

unread,
Feb 20, 2020, 9:32:29 AM2/20/20
to Google Visualization API
My IE gives me this message (activeX error.png file) when trying to open my chart, I just need to click to unblock it, what can I do for it to never ask me this ? Code below:
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load('current', {'packages':['corechart']});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = new google.visualization.arrayToDataTable([
['Titulo','Valor Original'],
['3 A',3702.00],
['7 B',1994.25],
['10 C',586.65],
['17 D',6268.00],
['24 E',1412.80],
['25 F',1587.00]
]);
var options = {
title:''
};

Em quinta-feira, 13 de fevereiro de 2020 15:26:53 UTC-3, Ilya Shulim escreveu:
activeX error.png
Reply all
Reply to author
Forward
0 new messages