Type ChartAxis

type ChartAxis struct {
	// Hidden removes the axis labels. A hidden Y axis still places the grid
	// lines, exactly as Recharts keeps ticks for a hidden axis.
	Hidden bool
	// Fixed pins the domain to [Min, Max]; otherwise it follows the data and, on
	// the value axis, is rounded out to whole ticks.
	Fixed    bool
	Min, Max float32
	// Linear places the X ticks at round values across the domain instead of at
	// the data points, as a numeric axis does. Without it the labels name the
	// points themselves, the category axis a month or a name needs. It has no
	// effect on bar charts, whose categories are always bands.
	Linear bool
	// Ticks is the wanted tick count. Zero picks one from the plot size: on a
	// value axis a nice step, on the X axis every data point that fits.
	Ticks int
	// Format appends the label of value v to dst and returns it, the way
	// strconv.AppendFloat does, so a label costs no allocation of its own. Nil
	// writes the number with just enough decimals for the tick step. On the X
	// axis v is the X value, or the point index when the chart has no X slice.
	Format func(dst []byte, v float32) []byte
}

ChartAxis configures one chart axis. The zero value is a visible axis with an automatic domain, an automatic tick count and a plain number format.