hashworks
9fd7836f84
Fix import in custom_stylesheets example
2018-10-12 23:57:14 +02:00
hashworks
c8e7309cce
Add type classes to examples
2018-10-12 23:56:26 +02:00
hashworks
633bc0d0aa
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`
2018-10-12 23:51:25 +02: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
Will Charczuk
96acfc6a9f
switching the build badge
2018-10-12 09:35:03 -07:00
Will Charczuk
31d235310c
removing travis references
2018-10-12 09:28:44 -07:00
Will Charczuk
70d5b73afd
fixing build
2018-10-12 09:26:46 -07:00
Will Charczuk
f5889c93ae
copy pasta
2018-10-12 09:24:20 -07:00
Will Charczuk
4e6c06ca87
removing coverage artifact
2018-10-12 09:23:56 -07:00
Will Charczuk
3e352f140b
adds circle ci
2018-10-12 09:23: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
Bernhard Reisenberger
6735e8990a
draw circle if single value; do not position text on negative coordinates ( #82 )
2018-10-11 17:21:06 -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
MinJae Kwon
828d1952d8
Put a space between the badges ( #101 )
2018-10-04 23:57:51 -07:00
Will Charczuk
872b97b99f
removing example
2018-09-10 13:14:46 -07:00
Will Charczuk
a7ff82d63f
lots of changes
2018-09-10 13:11:25 -07:00
Will Charczuk
0e849b11bb
sequence tweaks, removing market hours anything
2018-09-10 13:08:20 -07:00
Will Charczuk
1a09989055
fixing issues
2018-09-07 15:25:58 -07:00
Will Charczuk
1555902fc4
updates + tests
2018-09-07 12:52:30 -07:00
Will Charczuk
1144b80a46
latest go
2018-09-07 11:19:23 -07:00
Will Charczuk
1f159d195f
adding IntValueFormatter
2018-09-07 11:17:11 -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
ac680bd82d
Fixed order of arguments to assert.Len in test files. ( #93 )
...
* Fixed order of arguments to assert.Len in test files.
* Added BaseValue funtionality to bar chart
2018-09-05 08:45:19 -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
Will Charczuk
9e3a080aa3
profanity tweaks
2018-04-15 16:53:01 -07:00
Will Charczuk
44990c63ed
Merge branch 'master' of github.com:wcharczuk/go-chart
2018-04-15 12:43:40 -07:00
Will Charczuk
1ebbcf493d
adding profanity checks
2018-04-15 12:43:32 -07:00
Nat Welch
62338336c3
Update .gitignore ( #73 )
...
* Delete .DS_Store
* Update .gitignore w/ common exclusions
From https://github.com/github/gitignore/blob/master/Go.gitignore
2018-04-15 12:36:03 -07:00
Edwin
2dc8482db3
allow 'zero y-range delta' ( #72 )
2018-04-15 12:35:39 -07:00
Will Charczuk
7c3982fe3d
fixing tests
2018-04-05 00:47:39 -07:00
Will Charczuk
70e6cfddc5
fixing find and replace issue
2018-04-05 00:42:38 -07:00
Will Charczuk
df14434b6e
changing assert
2018-04-05 00:36:12 -07:00
Will Charczuk
7d28470055
removing dep on go-util from blend
2018-04-04 22:06:34 -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
Jeff Willette
34de44488d
changed the tick sanity ount variable ( #42 )
...
- The DefaultTickSanityCount was set in the default.go file and then in
in tick.go the setting was ignored and the value was again set with 1 << 10
Changed to use the setting instead
2017-05-22 20:11:29 -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
43212f871f
poly tests!
2017-04-26 00:27:11 -07:00
Will Charczuk
39e9977724
sane default handling
2017-04-25 23:35:07 -07:00
Will Charczuk
b244fd675c
fixing tests
2017-04-25 20:03:30 -07:00
Will Charczuk
da432bc1db
???
2017-04-25 20:01:48 -07:00
Will Charczuk
fc75f205ee
tweaks
2017-04-24 23:06:50 -07:00
Will Charczuk
685186cc4d
tweaks
2017-04-24 23:00:28 -07:00
Will Charczuk
64d2ef25c7
comment update
2017-04-21 13:34:54 -07:00
Will Charczuk
b41d05a2f4
adds last value for poly reg
2017-04-21 13:31:19 -07:00
Will Charczuk
0cbbd0887a
parameterize by index.
2017-04-19 15:27:31 -07:00