Commit graph

12 commits

Author SHA1 Message Date
Justin Kromlinger
f97f94425f Add ability to set CSS classes instead of inline styles (#103)
* Add ability to set CSS classes instead of inline styles

This allows to set a `ClassName` field in `Style` structs. Setting this
field to anything but "" will cause all other styles to be ignored. The
element will then have a `class=` tag instead with the corresponding name.

Possible reasons to use this:
* Including multiple SVGs on the same webside, using the same styles
* Desire to use strict CSP headers

* Add warning that setting `ClassName` will drop all other inline styles
2018-10-11 17:21:46 -07:00
Will Charczuk
f800bc387b text rotation works, ish. 2016-10-21 12:44:37 -07:00
Will Charczuk
718678b421 can rotate text + add y axis names 2016-08-06 21:59:46 -07:00
Will Charczuk
c17c9a4bb4 pie charts! 2016-07-28 02:34:44 -07:00
Will Charczuk
9a5138b21d ??? 2016-07-11 18:48:51 -07:00
Will Charczuk
abfdc3e0d9 mostly works. 2016-07-10 10:43:04 -07:00
Will Charczuk
e9a36274ac snapshot. 2016-07-10 01:11:47 -07:00
Will Charczuk
1357950324 a color type that actually works. 2016-07-09 11:23:35 -07:00
Will Charczuk
8bc8b1087c removing 3rd party deps. 2016-07-08 17:57:14 -07:00
Will Charczuk
f843d124d6 SVG! 2016-07-07 22:18:53 -07:00
Will Charczuk
cbc4672f1e updates. 2016-07-07 14:44:03 -07:00
Will Charczuk
2dd44d3675 initial commit. 2016-07-06 18:54:00 -07:00