Commit graph

68 commits

Author SHA1 Message Date
Will Charczuk
c1468e8ae4
Adds support for go mod (finally) (#164) 2020-11-22 16:45:10 -08:00
Jamie Isaacs
962b9abdec Add stacked bar chart value labels (#60) and a horizontal stacked bar chart (#39) (#114)
* Add stacked bar chart value labels (#60)

* Add horizontal render option to stacked bar chart (#39)

* Pulling 100% inside the canvasBox to remain visible.

* Use correct margins for YAxis.TextHorizontalAlign: chart.TextHorizontalAlignRight

* Fixed Show to Hidden due to 5f42a580a9
2019-12-06 11:22:51 -08:00
Will Charczuk
45fad0cfb8 switching to generators 2019-09-09 21:02:48 -07:00
Will Charczuk
2d5aeaf824 merging master 2019-09-09 20:24:15 -07:00
Will Charczuk
6d57cf4533 additions 2019-09-09 20:21:51 -07:00
Alessandro
9852fce5a1 adding donut type chart, like a pie chart with a blank circle on the center and little trick for label position (#111)
(some way of improvement)
2019-02-19 10:52:03 -08: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
5f42a580a9 mostly working 2019-02-13 18:55:13 -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
nptrx
865ff54ab9 unification of sample and test coding styles will improve visibility (#67)
* "Style{Show: true}" to "StyleShow()"
* "Box{IsSet: true}" to "BoxZero"
2018-10-11 17:20:44 -07:00
Will Charczuk
0fb4aa53e9 adds a rerender example 2018-10-11 17:18:46 -07:00
Will Charczuk
872b97b99f removing example 2018-09-10 13:14:46 -07:00
Will Charczuk
1a09989055 fixing issues 2018-09-07 15:25:58 -07:00
Yuji Yaginuma
4ed65028e4 Fix func name typo in examples (#91)
It seems that `RandomValuesWithMax` is correct.
9e3a080aa3/seq/random.go (L15)
2018-09-05 08:45:45 -07:00
David Mis
3edccc4758 Added BaseValue funtionality to bar chart (#94) 2018-09-05 08:44:49 -07:00
Michael Bruce
d667b8c983 spelling correction (#98) 2018-09-05 08:43:52 -07:00
Andrew Poydence
0506f74600 Fix typo in example (#100) 2018-09-05 08:43:35 -07:00
oneumyvakin
11e380634b Port changes 'fixing styling issues w/ the stack bar chart.' from commit a0ea012903 (#66) 2018-01-24 09:43:24 -08:00
Will Charczuk
f72f7fd57b fix for issues/56 2017-10-12 13:29:55 -07:00
Will Charczuk
a0ea012903 fixing styling issues w/ the stack bar chart. 2017-06-11 11:38:10 -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
0cbbd0887a parameterize by index. 2017-04-19 15:27:31 -07:00
Will Charczuk
a211e88530 Adds matrix sub package & adds polynomial regression series (#36)
* updates

* updates

* tests.

* test coverage

* fixing test

* stride not rows + cols

* lu decomp implementation.

* poly regression!

* poly regression works.

* typo.
2017-04-18 20:20:29 -07:00
Chris Redford
b3dc3fef3c Separation of DotColorProvider and ColorProvider Interfaces (#34)
* fully functioning Viridis

* pure functions
2017-04-17 16:21:02 -07:00
Didip Kerabat
e53554fb04 Benchmarking the performance of drawing line charts. (#30)
* Another example for benchmarking the performance of drawing line charts.

* Cleanup the code a bit.
2017-04-16 10:37:39 -07:00
Will Charczuk
3f046bbba1 adding jet as a generator 2017-04-15 09:59:37 -07:00
Will Charczuk
c599f1a2a2 removing color translator 2017-04-15 09:43:59 -07:00
Will Charczuk
03ac305951 just passing the full range. 2017-04-15 09:07:59 -07:00
Will Charczuk
079c471daf updated example 2017-04-14 17:46:53 -07:00
Will Charczuk
fdb1b191b2 color maps 2017-04-14 17:43:52 -07:00
Will Charczuk
66b99eb8e3 fixing svg circles 2017-03-05 23:52:13 -08:00
Will Charczuk
8e91a3446f wiring up pprof. 2017-03-05 23:37:30 -08:00
Will Charczuk
182d5a199b potential fix for issue with large deltas rounding the y axis 2017-03-05 23:20:58 -08:00
Will Charczuk
b713ff85cc Adds the ability to draw an XY scatter plot. (#27)
* works more or less

* updating comment

* removing debugging printf

* adding output

* tweaks

* missed a couple series validations

* testing auto coloring

* updated output.png

* color tests etc.

* sanity check tests.

* should not use unkeyed fields anyway.
2017-03-05 16:54:40 -08:00
Will Charczuk
d88ba0ead3 removing exception dep, saving blank canvas on checkRanges err 2017-02-22 17:15:13 -08:00
Will Charczuk
a3605addc2 adding output. 2017-02-13 00:28:23 -08:00
Will Charczuk
6db18d540d snapshot. 2017-02-13 00:27:33 -08:00
Will Charczuk
1edf6193b2 slight tweak to legend (adds a new style) and example 2017-02-13 00:27:02 -08:00
Will Charczuk
841f21921e example tweaks. 2017-02-06 14:26:37 -08:00
Will Charczuk
9b804502c0 tweaks 2017-02-06 14:25:09 -08:00
Will Charczuk
e735797037 adding validation. 2017-02-03 11:26:53 -08:00
Will Charczuk
3ea3c9ac10 example tweak. 2017-02-03 10:47:48 -08:00
Will Charczuk
7163f89845 comment. 2017-01-10 13:54:57 -08:00
Will Charczuk
98d3996b47 descending 2017-01-10 13:50:17 -08:00
Will Charczuk
21986dbce7 fixing output. 2016-12-15 18:07:07 -08:00
Will Charczuk
27a5efdd2d Merge pull request #13 from wcharczuk/text-rotation
Adds `TextRotationDegrees`
2016-10-21 12:53:01 -07:00
Will Charczuk
2e8d196621 works, ish. 2016-10-21 12:50:40 -07:00
Will Charczuk
f800bc387b text rotation works, ish. 2016-10-21 12:44:37 -07:00