HumbleSoftware / Flotr2

Graphs and Charts for Canvas in JavaScript.
http://www.humblesoftware.com/flotr2/
MIT License
2.44k stars 526 forks source link

Charts are grainy on Retina display devices #176

Closed ghost closed 11 years ago

ghost commented 11 years ago

Charts are very blurry/grainy when people view them on high resolution devices (iPad 3+, iPhone 5, Macbook Pro 15 or 13inch, HTC J Butterfly, Kindle Fire HD, Transformer Infinity and so on)

The flotr1 issue can be found here with a working pull. https://github.com/olivierguerriat/flot/commit/179d2e1d39cd8043a8e7000798c5d3a959751003

cesutherland commented 11 years ago

Set the resolution option.

You should set this to the devicePixelRatio (http://www.quirksmode.org/blog/archives/2012/06/devicepixelrati.html) of your device. 2 for iPad retina displays.

ghost commented 11 years ago

Well, now I feel silly =) Thanks! That worked perfectly.