XAxisRange enables the X-axis and maps the given domain [min, max] onto the plot width.
(min, max float64)
| 250 | |
| 251 | // XAxisRange enables the X-axis and maps the given domain [min, max] onto the plot width. |
| 252 | func XAxisRange(min, max float64) Option { |
| 253 | return optionFunc(func(c *config) { |
| 254 | c.XAxisRange = &[2]float64{min, max} |
| 255 | }) |
| 256 | } |
| 257 | |
| 258 | // XAxisTickCount sets the number of ticks on the X-axis. Default is 5, minimum is 2. |
| 259 | func XAxisTickCount(n int) Option { |
searching dependent graphs…