Skip to content

arlas-d3 / Exports / WeekAxis

Class: WeekAxis

Hierarchy

WeekAxis

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WeekAxis(context)

Parameters

Name Type
context any

Overrides

Axis.constructor

Defined in

src/calendar-timeline/lib/classes/axes/week.axis.ts:25

Properties

axisXOffset

Protected axisXOffset: number

Inherited from

Axis.axisXOffset

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:34


axisYOffset

Protected axisYOffset: number

Inherited from

Axis.axisYOffset

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:35


context

Protected context: Selection<SVGGElement, TimelineData, BaseType, TimelineData>

the context is the parent element to which the current element is appended

Inherited from

Axis.context

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:27


dimensions

Protected dimensions: Dimensions

Inherited from

Axis.dimensions

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:28


domain

Protected domain: ScaleTime<number, number, never>

Inherited from

Axis.domain

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:29


element

Protected element: Selection<SVGGElement, TimelineData, BaseType, TimelineData>

the element contains the drawing of this current object

Inherited from

Axis.element

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:25


textFontSize

Protected textFontSize: number

Inherited from

Axis.textFontSize

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:36


tickFormat

Protected tickFormat: (domainValue: Date | NumberValue, index: number) => string

Type declaration

▸ (domainValue, index): string

Parameters
Name Type
domainValue Date | NumberValue
index number
Returns

string

Inherited from

Axis.tickFormat

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:33


tickInterval

Protected tickInterval: AxisTimeInterval

Inherited from

Axis.tickInterval

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:30


tickIntervalWidth

Protected tickIntervalWidth: number

Inherited from

Axis.tickIntervalWidth

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:31


tickSize

Protected tickSize: number = 6

Inherited from

Axis.tickSize

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:32

Methods

getDate

getDate(d): Date

Parameters

Name Type
d number

Returns

Date

Inherited from

Axis.getDate

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:113


getIntervalWidth

getIntervalWidth(d): number

Parameters

Name Type
d Date

Returns

number

Inherited from

Axis.getIntervalWidth

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:105


getPosition

getPosition(d): number

Parameters

Name Type
d Date

Returns

number

Inherited from

Axis.getPosition

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:109


getTickIntervalWidth

getTickIntervalWidth(): number

Returns

number

Inherited from

Axis.getTickIntervalWidth

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:101


onClick

onClick(e): void

Parameters

Name Type
e any

Returns

void

Inherited from

Axis.onClick

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:60


plot

plot(): void

plots the axis, if the axis has already been plotted, it's replaced.

Returns

void

Overrides

Axis.plot

Defined in

src/calendar-timeline/lib/classes/axes/week.axis.ts:30


remove

remove(): void

Returns

void

Inherited from

Axis.remove

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:45


setAxisYOffset

setAxisYOffset(axisYOffset): Axis

Parameters

Name Type
axisYOffset number

Returns

Axis

Inherited from

Axis.setAxisYOffset

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:76


setBoundDates

setBoundDates(dates): Axis

Set the dates of the axis bounds

Parameters

Name Type Description
dates Date[] start and end dates

Returns

Axis

Overrides

Axis.setBoundDates

Defined in

src/calendar-timeline/lib/classes/axes/week.axis.ts:40


setDimensions

setDimensions(dimensions): DrawableObject

Parameters

Name Type
dimensions Dimensions

Returns

DrawableObject

Inherited from

Axis.setDimensions

Defined in

src/calendar-timeline/lib/classes/drawable.object.ts:52


setRange

setRange(d): Axis

Parameters

Name Type
d Dimensions

Returns

Axis

Inherited from

Axis.setRange

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:47


setTextFontSize

setTextFontSize(textFontSize): Axis

Parameters

Name Type
textFontSize number

Returns

Axis

Inherited from

Axis.setTextFontSize

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:81


setTickInterval

setTickInterval(t): WeekAxis

Parameters

Name Type
t AxisTimeInterval

Returns

WeekAxis

Inherited from

Axis.setTickInterval

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:61


setTickIntervalWidth

setTickIntervalWidth(t): WeekAxis

Parameters

Name Type
t number

Returns

WeekAxis

Inherited from

Axis.setTickIntervalWidth

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:71


setTickSize

setTickSize(s): WeekAxis

Parameters

Name Type
s number

Returns

WeekAxis

Inherited from

Axis.setTickSize

Defined in

src/calendar-timeline/lib/classes/axes/axis.ts:66