-
Notifications
You must be signed in to change notification settings - Fork 473
Axes
Home ▸ List of Options ▸ Axes
# inflator
A multiplier for inflating max_x and max_y.
Possible values: {10/9, number}
# max_x
The maximum x-value. By default, the value is inferred from the dataset.
Possible values: {null, number}
# max_y
The maximum y-value. By default, the value is inferred from the dataset.
Possible values: {null, number}
# min_x
The minimum x-value. By default, the value is inferred from the dataset.
Possible values: {null, number}
# min_y
The minimum y-value. By default, the value is inferred from the dataset, though if the minimum y-value greater than 0, it is set to 0.
Possible values: {null, number}
# min_y_from_data
If set, y-axis will start at the data's minimum value rather than at 0.
Possible values: {false, true}
# show_years
Determines whether to show the year on the x-axis below the first month of the year's label.
Possible values: {true, false}
# small_text
Coerces small text regardless of graphic size.
Possible values: {false, true}
# xax_count
The number of x-axis ticks. The actual number of ticks will be as close to the specified number as possible.
Possible values: {6, number}
# xax_format
A function that formats the x-axis' labels. By default, the x-axis is assumed to be a time-series and the labels are formatted by showing the full month name followed by the day.
// it returns function to format date objects
d3.time.format('%b %d')
For the full list of directives for formatting time, refer to this list. A custom function may be passed in.
# x_axis
Determines whether to display the x-axis.
Possible values: {true, false}
# x_label
The label to show below the x-axis.
Possible values: {null, string}
# xax_tick_length
The x-axis' tick length in pixels.
Possible values: {5, number}
# xax_units
A prefix symbol to be shown alongside the x axis' labels. Useful for currencies, for instance.
Possible values: {null, string}
# yax_count
The number of y-axis ticks. The actual number of ticks will be as close to the specified number as possible.
Possible values: {5, number}
# yax_tick_length
The y-axis' tick length in pixels.
Possible values: {5, number}
# y_axis
Determines whether to display the y-axis.
Possible values: {true, false}
# y_label
The label to show beside the y-axis.
Possible values: {null, string}
# y_scale_type
The y-axis scale type.
Possible values: {linear, log}