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

A chart having three components ( "undefined" in IE and Firefox..Works fine with Chrome #49

Closed
Ankit1912 opened this issue Nov 15, 2012 · 8 comments
Labels

Comments

@Ankit1912
Copy link

I have sparkline chart having three components (101, 0, 100). It plots perfectly on chrome but there is a "un" instead of the chart on IE and in Fire Fox. IE version is 7 and Fire fox version is 16.0.2

@Ankit1912
Copy link
Author

Html :-

Sparkline appears here:  

javascript :-
// jsfiddle configured to load jQuery Sparkline 2.1
// http://omnipotent.net/jquery.sparkline/

// Values to render
var values = [99.51,0.00,0.49];

// Draw a sparkline for the #sparkline element
$('#sparkline').sparkline(values, {
type: 'pie',
borderWidth: 0,
height: '1.40em',
disableTooltips: true,
sliceColors: ['#088A08','#2E64FE','#FF8000'],
offset: 180
});

Result :-
Sparkline appears here: undefined

@gwatts
Copy link
Owner

gwatts commented Nov 15, 2012

Can you add a link to your jsfiddle example please?

@Ankit1912
Copy link
Author

@gwatts
Copy link
Owner

gwatts commented Nov 15, 2012

The jsfiddle works for me if i select jquery 1.8.2 or 1.6.2 - Something odd going on with the 1.7.2 version in that context for some reason

@Ankit1912
Copy link
Author

I still see the same effect for both 1.8.2 and 1.6.2. Have you tested jsfidle in IE7 ?

@gwatts
Copy link
Owner

gwatts commented Nov 18, 2012

On closer inspection this looks like a bug with the pie chart rendering for IE when very small slices are present.

I've checked in a fix now - Please try this build when you have a chance: http://omnipotent.net/jquery.sparkline/builds/121117/jquery.sparkline.js

@Ankit1912
Copy link
Author

This one is rendering the pie but it is not showing the smallest non zero slice (0.49 in the above example) - This is only on IE

@gwatts
Copy link
Owner

gwatts commented Jun 16, 2013

The small slice is there, it's just too small to render using VML - You can verify it's there by changing the size from 1.4em to 14.0em or whatever in your example

Closing as it appears fixed to me.

@gwatts gwatts closed this as completed Jun 16, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants