gwatts / jquery.sparkline

A plugin for the jQuery javascript library to generate small sparkline charts directly in the browser
http://omnipotent.net/jquery.sparkline/
1.24k stars 278 forks source link

Simpler method to add css style to page #113

Closed tleruitte closed 5 years ago

tleruitte commented 10 years ago

This is a simplet method to add css style to the page.

I have an issue when I use Sparkline with Font awesome (or any other font that use css pseudo elements to declare content). The issue is that the content of the font isn't loaded as it should be and thus the icons are not rendered. I've discovered that changing the way Sparkline insert css onto the page resolves the problem. I can show you a simple test case if needed.

Tested on IE8+, Chrome, Firefox.