Skip to content
almossawi edited this page Oct 24, 2014 · 38 revisions

HomeList of OptionsAxes

Axes Options

# inflator

A multiplier that adds a gap between the markers' text, at the top, and the plot.

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}

# 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.

function(d) {
    var df = d3.time.format('%b %d');
    return df(d);
}

For the full list of directives for formatting time, refer to this list. A custom function may be passed in.

# x_label

The label to show below the x-axis.

Possible values: {null, string}

# xax_tick

The x-axis' tick length in pixels.

Possible values: {5, number}

# xax_units

The currency symbol to be shown alongside the x axis' labels. TBA (before/after)

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

The y-axis' tick length in pixels.

Possible values: {5, number}

# 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}

Clone this wiki locally