Open Flash Chart :: wiki :: JSON
Y axis
All attributes are optional.
| attribute | type[s] | comments |
| stroke | integer | pen stroke in pixels (width of line) |
| tick-length | integer | in pixels |
| colour | string | HEX colour e.g. "#ff00ff" |
| grid-colour | string | HEX colour e.g. "#ff00ff" |
| grid-visible | boolean | display the grid lines (this is linked to the step value |
| offset | boolean | is the Y Axis nudged in half a step, or are min and max flush with the edge of the chart |
| min | integer | min value |
| max | integer | max value |
| visible | boolean | is it drawn |
| steps | integer | draw every 'steps' Y axis label, tick and grid line |
| labels | object | User 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 ... */
}
