- name:?[]const u8
- ?[]const u8
- min:?f64
- ?f64
- max:?f64
- ?f64
- scale:union(enum) {
linear,
log: struct {
base: f64 = 10,
},
}
- union(enum) {
linear,
log: struct {
base: f64 = 10,
},
}
- ticks:struct {
locations: union(TickLocatorType) {
none,
auto: struct {
tick_num_suggestion: usize = 5,
tick_num_max: usize = 20,
},
custom: []const f64,
} = .{ .auto = .{} },
side: TicklinesSide = .both,
// if null it uses the default for `scale`
format: ?TickFormating = null,
subticks: bool = false,
}
- struct {
locations: union(TickLocatorType) {
none,
auto: struct {
tick_num_suggestion: usize = 5,
tick_num_max: usize = 20,
},
custom: []const f64,
} = .{ .auto = .{} },
side: TicklinesSide = .both,
// if null it uses the default for `scale`
format: ?TickFormating = null,
subticks: bool = false,
}