Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not showing data on IE #4338

Closed
leoalassia opened this issue Jun 6, 2017 · 8 comments
Closed

Not showing data on IE #4338

leoalassia opened this issue Jun 6, 2017 · 8 comments

Comments

@leoalassia
Copy link

I update the chart js version to 2.6.0 and now IE is not showing my chart

Expected Behavior

Works as 2.5.0

Current Behavior

Don't work

Possible Solution

Downgrade to 2.5.0

Steps to Reproduce (for bugs)

I use this script

  var ctx = document.getElementById("myChart").getContext("2d");
  var myChart = new Chart(ctx, {
type: 'line',
data: {
	labels: [ <?php ... ?> ],
    datasets: [{
		label: '<?php ... ?>',
        data: [ <?php... ?> ],
		backgroundColor: "rgba(0,153,255,0.4)",
		borderColor: "rgb(0,153,255)",
		fill: false,
		pointRadius: 0,
		yAxisID : "axis1"
    } , {
		label: '<?php ... ?>',
        data: [ <?php... ?> ],
		backgroundColor: "rgba(255,153,0,0.4)",
		borderColor: "rgb(255,153,0)",
		fill: false,
		pointRadius: 0,
		yAxisID : "axis2"		
	}]
},
options: {
	maintainAspectRatio: false,
	title: {display: false},
    scales: {
        yAxes: [{
			id: "axis1",
            ticks: {
                max: <?php ... ?>,
                min: <?php ... ?>,
				fontColor: '#09F'
            }
        } , { 
			id: "axis2",
            ticks: {
                max: <?php ... ?>,
                min: <?php ... ?>,
				fontColor: '#F90'
            }
		
		}],
        xAxes: [{
            type: 'time',
            time: {
                displayFormats: {
                    quarter: 'hh:mm'
                },
				unit: '<?php ... ?>',
				unitStepSize: <?php ... ?>
            }
        }]
    }
}

});

Environment

IE 12 (Windows 7)
IE for mobile Windows Phone 8.1
Chart.js version: 2.6.0

@etimberg
Copy link
Member

etimberg commented Jun 6, 2017

@leoalassia are there any console errors?

@leoalassia
Copy link
Author

leoalassia commented Jun 6, 2017 via email

@etimberg
Copy link
Member

etimberg commented Jun 6, 2017

Do you have a fiddle that reproduces this?

@leoalassia
Copy link
Author

leoalassia commented Jun 6, 2017 via email

@tiesont
Copy link
Contributor

tiesont commented Jun 7, 2017

I can confirm that the fiddle doesn't run on IE11 (there isn't actually an IE12, so I assume that's a typo) on Windows 10 - same fiddle works in Edge, Firefox, and Chrome.

I can also confirm that rolling back to 2.5 results in the fiddle working in IE11.

@simonbrunel
Copy link
Member

Duplicate of #4294?

@etimberg
Copy link
Member

etimberg commented Jun 7, 2017

Can confirm this is a duplicate of #4294. I created https://jsfiddle.net/6zuuhkL7/1/ and it worked on IE11 on Windows 7.

@cr4zyc4t
Copy link

cr4zyc4t commented Jun 9, 2017

I have this problem too. And I know exactly when it happen: using TIME SCALE
Even the sample code on homepage does not work on IE:
http://www.chartjs.org/samples/latest/scales/time/line.html
http://www.chartjs.org/samples/latest/scales/time/combo.html

P/S: no error in console.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants