Open Flash Chart :: wiki :: JSON

Y axis

All attributes are optional.

attributetype[s]comments
strokeintegerpen stroke in pixels (width of line)
tick-lengthintegerin pixels
colourstringHEX colour e.g. "#ff00ff"
grid-colourstringHEX colour e.g. "#ff00ff"
grid-visiblebooleandisplay the grid lines (this is linked to the step value
offsetbooleanis the Y Axis nudged in half a step, or are min and max flush with the edge of the chart
minintegermin value
maxintegermax value
visiblebooleanis it drawn
stepsintegerdraw every 'steps' Y axis label, tick and grid line
labelsobjectUser defined list of labels to use see y_axis_labels

You can set min to be greater than max and the chart will be upside down.

See also y_axis_labels See also localization? for how to format the Y axis numbers

example JSON

"y_axis":{
    "stroke":       4,
    "tick-length":  10,
    "colour":       "#d09090",
    "grid-colour":  "#00ff00",
    "grid-visible": false,
    "offset":       false,
    "min":         -4,
    "max":          4,
    "visible":      true,
    "steps":        2
  }

or

{
  "y_axis":{ "steps": 0.5, "min" : 0, "max":3 },
  "y_axis_right":{ "steps": 1, "min" : 3, "max":0 },
  /* ... more chart bits ... */
}