Class: c3.Axis Abstract
| Defined in: | js/c3-plot.coffee |
| Inherits: | c3.Chart |
Overview
An Axis visualizes a set of tick marks and units based on the supplied D3 scale. This is an abstract class, please create a {c3.Axis.x} or {c3.Axis.y}.
Axes may be attached to XY Plots or managed as a seperate DOM element for layout flexibility.
Direct Known Subclasses
Variables Summary
- version =
-
0.1 - type =
-
'axis' - scale =
-
undefined - orient =
-
undefined[String] Axis orientation. Use bottom or top for an X axis and left or right for a Y axis.
- grid =
-
false[Boolean] Set to true to draw grid lines as well as the axis
- label =
-
undefined[String] Text label for this axis
- ticks =
-
true[Boolean] Enable tick marks and labels
- tick_label =
-
true[Boolean, Function] Formater function for the tick label. Set to
truefor displaying the default tick values. See d3.format. - tick_values =
-
undefined[Array] An array of manually set tick values to use instead of the scale's automatic tick generation.
- tick_count =
-
undefined[Number] Specify number of ticks to generate
- tick_size =
-
6[Number] Size of the tick marks in pixels
- path_size =
-
2[Number] Width of the path that forms a line along the length of the axis
- axis_size =
-
undefined[Number] The overall width of a horizontal axis or height of a vertical axis
Variable inherited from c3.Chart
type class options content_options _next_uid anchor height width anchor_styles handlers
Instance Method Summary
- # (void) _init() Bound
- # (void) _draw() Bound
Inherited Method Summary
Methods inherited from
c3.Chart
#init #style #render #resize #redraw #restyle #_prep #_init #size #_size #update #_update #draw #_draw #_style
Constructor Details
#
(void)
constructor(opt)
Instance Method Details
#
(void)
_init()
Bound
#
(void)
_draw()
Bound