Skip to content
Dmitry Voytsekhovskiy edited this page Mar 10, 2017 · 4 revisions

How to use:

HTML

<div data-idd-axis="numeric" data-idd-placement="bottom" data-bind="iddAxisSettings:XLabels"></div>

Type of XLabels :

type iddAxisSettings = {
 type: string, //"labels" or "numeric"
 ticks?: number[],
 labels?: string[],
 attachGrid?: boolean ,
 rotate?: boolean // true for vertical axis
}

If type is "numeric", the only additional property is attachGrid; other properties will be ignored.

If type is "labels", the ticks are mandatory and labels are optional. If number of labels is less by one than number of ticks, the labels are displayed between the ticks.