{% extends "basex.html" %} {% load markup %} {% block pageid %}code{% endblock %} {% block headers %} {% endblock %} {% block title %}PlotKit.Renderer{% endblock %} {% block content %}
Option name | Description | Type | Default |
backgroundColor | color to use for background | MochiKit.Color.Color | Color.whiteColor() |
---|---|---|---|
colorScheme | Color scheme used | Array of MochiKit.Color.Color | output of PlotKit.Base.colorScheme() |
strokeColor | Color used stroking. If set to null, the renderer will attempt to use strokeColorTransform | MochiKit.Color.Color or null | null |
strokeColorTransform | Name of the method to call to transform Color into stroke color. | string (name of a function that accepts no arguments) | "asStrokeColor" |
drawBackground | Whether the background should be drawn | boolean | true |
shouldFill | Should fill in area under chart | boolean | true |
shouldStroke | Should stroke the borders of shapes in chart | boolean | true |
strokeWidth | Width of stroke used (if shouldStroke is set) | float | 0.1 |
padding | Padding of the graph drawn (excluding labels) | Object with properties: top, bottom, left, right. | {left: 30, right:20, top: 10, bottom: 10} |
drawYAxis | draw Y Axis | boolean | true |
drawXAxis | draw X Axis | boolean | true |
axisLineColor | Color of axes line. | MochiKit.Color.Color | Color.blackColor() |
axisLineWidth | axis line width | float | 0.5 |
axisTickSize | length or height of a tick on the y and x axis respectively, in pixels | float | 3.0 |
axisLabelColor | color of text label on axis. | MochiKit.Color.Color | Color.blackColor() |
axisLabelFontSize | Font size of labels in pixels | integer | 9 |
axisLabelWidth | Width of labels on ticks, in pixels | integer | 50 |
enableEvents | Enable events (if supported) | boolean | true |