question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Expected Behavior

chartjs should show charts on IE 11

Current Behavior

no chart shown on IE 11.950…

Possible Solution

upgrade plz

Steps to Reproduce (for bugs)

  1. upgrade to IE 11.950…
  2. compose a sample code
<!DOCTYPE html><html><head>
<title>Pie Chart</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.8.0"></script>
<style type="text/css">/* Chart.js */ </style> </head> <body> <button onclick="showchart()">show</button> <div id="canvas-holder" style="width:40%"> <canvas id="chart-area" style="display: block; width: 762px; height: 381px;" width="762" height="381"></canvas> </div>
<script>
	var chart;
	var config = {
		type: 'pie',
		data: {
			datasets: [{
				data: [1,2,3,4,5],
				backgroundColor:['rgb(123,34,243)','rgb(123,34,243)','rgb(123,34,243)','rgb(123,34,243)','rgb(123,34,243)'],
				label: 'Dataset 1'
			}],
			labels: ['Red','Orange','Yellow','Green','Blue']
		}
	};
	function showchart(){
		var ctx = document.getElementById('chart-area').getContext('2d');
		chart = new Chart(ctx, config);
	}
</script>
</body></html> 3. run in Chrome, Edge and IE 11.950......, both chrome and Edge work except IE ## Context

Environment

  • Chart.js version: 2.8
  • Browser name and version: IE 11.950.17134.0
  • Link to your project:

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
jamesfrasercommented, Aug 27, 2019

@xingguo3 seems to work OK in this scenario too

Capture

0reactions
nickwong64commented, May 6, 2021

I tested if I switch off compatibility mode in IE11, the chart shows up, while switch on will not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Download Internet Explorer 11 (Offline installer)
Language Native name Windows version Afrikaans Afrikaans Windows 7 SP1 32‑bit · Windows 7 SP1 64‑bit Albanian shqipe Windows 7 SP1 32‑bit · Windows 7...
Read more >
Internet Explorer 11 - Wikipedia
Internet Explorer 11 (IE11) is the eleventh and final version of the Internet Explorer web browser. It was initially included in the release...
Read more >
Internet Explorer 11 has retired and is officially out of support ...
After 25+ years of helping people use and experience the web, Internet Explorer (IE) is officially retired and out of support as of...
Read more >
Free Download Internet Explorer 11 for Windows 10
This post shows you how to download Internet Explorer 11 and try it on Windows 10. It also tells you how to try...
Read more >
Microsoft disables Internet Explorer 11 on Feb. 14, 2023
Internet Explorer 11 will no longer be supported as a desktop application on certain versions of Windows 10 as of June 15, 2022...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found