Exemple #1
0
func rightAxis(style *Axis) {
	pre := `w`
	if !style.NoLine {
		pre = `c`
	}
	if !style.NoLabel {
		pre += `m`
	}
	c.Box(``, 0, 0, pre+style.Option(), style.Tick.MajorInterval, style.Tick.SubCount)
}
Exemple #2
0
func leftAxis(style *Axis) {
	pre := `u`
	if !style.NoLine {
		pre = `b`
	}
	if !style.NoLabel {
		pre += `n`
	}
	c.Box(``, 0, 0, pre+style.Option(), style.Tick.MajorInterval, style.Tick.SubCount)
}
Exemple #3
0
func bottomAxis(style *Axis) {
	pre := `u`
	if !style.NoLine {
		pre = `b`
	}
	if !style.NoLabel {
		pre += `n`
	}
	c.Box(pre+style.Option(), style.Tick.MajorInterval, style.Tick.SubCount, ``, 0, 0)
}