Commit graph

35 commits

Author SHA1 Message Date
cc8d36edd9 update url
Some checks failed
Continuous Integration / Tests (push) Has been cancelled
2024-10-27 21:52:38 -05:00
Will Charczuk
7281bbdfa8 tweaking how svg renders itself 2023-10-03 08:43:15 -07:00
guangwu
e781e0cd22
chore: unnecessary use of fmt.Sprintf (#211) 2023-07-10 08:53:10 -07:00
Will Charczuk
c1468e8ae4
Adds support for go mod (finally) (#164) 2020-11-22 16:45:10 -08:00
Will Charczuk
2d5aeaf824 merging master 2019-09-09 20:24:15 -07:00
Justin Kromlinger
59451fbeb4 Add type classes on class output (#106)
* Add type classes on class output

Without this it is quite difficult to differentiate between fill and
stroke elements, f.e. with basic charts with fillings or legends
generally:
`svg path:nth-last-of-type(2).legend`

Text elements needed to be accessed with text.classname which
isn't really best practise.

This way they can be accessed easier:
`svg .legend.fill`

* Add type classes to examples

* Fix import in custom_stylesheets example
2019-02-19 10:51:41 -08:00
Will Charczuk
26eaa1d898 snapshot 2019-02-13 16:09:26 -08:00
Justin Kromlinger
3cb33d48d3 Add ability to set custom stylesheets for SVG renderer (#105)
* Add ability to set custom stylesheets for SVG renderer

This allow to set custom inline CSS and a optional CSP nonce. This
solves the problem mentioned in #103 and is best used with it, as seen
in the added examples. Without this one would have to write a custom
renderer.

* Add note with link to the custom_stylesheets example
2018-10-12 09:43:30 -07:00
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
7d28470055 removing dep on go-util from blend 2018-04-04 22:06:34 -07:00
Will Charczuk
f72f7fd57b fix for issues/56 2017-10-12 13:29:55 -07:00
Will Charczuk
03708a90ef Helper API refactor (#40)
* api cleaup

* updates

* wtf

* updates

* snapshot.

* tweaks

* snapshot

* api tweaks.

* updates

* updates

* updates

* changes.

* updates

* updates

* sequence => seq

* dont need to use curl, just using wget

* fixing examples
2017-05-12 17:12:23 -07:00
Will Charczuk
4f15ced303 adding helper 2017-03-26 16:29:24 -07:00
Will Charczuk
fec5be6506 adding helper 2017-03-26 16:27:15 -07:00
Will Charczuk
66b99eb8e3 fixing svg circles 2017-03-05 23:52:13 -08:00
Will Charczuk
f800bc387b text rotation works, ish. 2016-10-21 12:44:37 -07:00
Will Charczuk
a1835a532d bounded rotate works, ish 2016-09-05 14:03:20 -07:00
Will Charczuk
8f56e5939b snapshot. 2016-09-05 13:26:12 -07:00
Will Charczuk
718678b421 can rotate text + add y axis names 2016-08-06 21:59:46 -07:00
Will Charczuk
cbc0002d2a big api overhauls. 2016-07-29 18:24:25 -07:00
Will Charczuk
d84d6790c0 text options! 2016-07-29 16:36:29 -07:00
Will Charczuk
3d9cf0da0c vector renderer works 2016-07-28 13:22:18 -07:00
Will Charczuk
c17c9a4bb4 pie charts! 2016-07-28 02:34:44 -07:00
Will Charczuk
9ad15b3288 fixing dash arrays and style handling in vector renderer. 2016-07-15 18:19:29 -07:00
Will Charczuk
28f01842de slightly more rigorous bounds checking and auto-fit 2016-07-12 16:47:52 -07:00
Will Charczuk
9a5138b21d ??? 2016-07-11 18:48:51 -07:00
Will Charczuk
ee12481644 also fixing svg 2016-07-11 00:23:31 -07:00
Will Charczuk
1e62f7ce3b fixing svg renderer 2016-07-10 18:09:41 -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
0da2b41a9d you can now fill series. 2016-07-09 10:27:47 -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
b336065b86 build bust 2016-07-07 21:16:34 -07:00
Will Charczuk
f71ffc98a5 whoopsie. 2016-07-07 21:07:47 -07:00