Class: Buckets
Hierarchy
TemporalObject
↳ Buckets
Table of contents
Constructors
Properties
Methods
- getTimelineData
- onClick
- plot
- remove
- round
- setAxis
- setClimatological
- setColors
- setData
- setDimensions
- setGranularity
Constructors
constructor
• new Buckets(context
)
Parameters
Name | Type |
---|---|
context |
Selection <SVGGElement , TimelineData , BaseType , TimelineData > |
Overrides
TemporalObject.constructor
Defined in
src/calendar-timeline/lib/classes/buckets/buckets.ts:31
Properties
axis
• Protected
axis: Axis
Inherited from
TemporalObject.axis
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:26
climatological
• Protected
climatological: boolean
Inherited from
TemporalObject.climatological
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:28
colors
• Protected
colors: DrawableObjectColors
Inherited from
TemporalObject.colors
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:29
context
• Protected
context: Selection
<SVGGElement
, TimelineData
, BaseType
, TimelineData
>
the context is the parent element to which the current element is appended
Inherited from
TemporalObject.context
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:27
data
• Protected
data: TimelineData
[] = []
Defined in
src/calendar-timeline/lib/classes/buckets/buckets.ts:28
dates
• Protected
dates: Date
[] = []
Defined in
src/calendar-timeline/lib/classes/buckets/buckets.ts:29
dimensions
• Protected
dimensions: Dimensions
Inherited from
TemporalObject.dimensions
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:28
element
• Protected
element: Selection
<SVGGElement
, TimelineData
, BaseType
, TimelineData
>
the element
contains the drawing of this current object
Inherited from
TemporalObject.element
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:25
granularity
• Protected
granularity: Granularity
Inherited from
TemporalObject.granularity
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:27
Methods
getTimelineData
▸ getTimelineData(date
): TimelineData
Parameters
Name | Type |
---|---|
date |
Date |
Returns
Defined in
src/calendar-timeline/lib/classes/buckets/buckets.ts:54
onClick
▸ onClick(e
): void
Parameters
Name | Type |
---|---|
e |
any |
Returns
void
Inherited from
TemporalObject.onClick
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:60
plot
▸ plot(): void
Returns
void
Inherited from
TemporalObject.plot
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:38
remove
▸ remove(): void
Returns
void
Inherited from
TemporalObject.remove
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:45
round
▸ Protected
round(d
): Date
Parameters
Name | Type |
---|---|
d |
Date |
Returns
Date
Inherited from
TemporalObject.round
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:64
setAxis
▸ setAxis(axis
): TemporalObject
Parameters
Name | Type |
---|---|
axis |
Axis |
Returns
TemporalObject
Inherited from
TemporalObject.setAxis
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:31
setClimatological
▸ setClimatological(climatological
): TemporalObject
Parameters
Name | Type |
---|---|
climatological |
boolean |
Returns
TemporalObject
Inherited from
TemporalObject.setClimatological
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:42
setColors
▸ Protected
setColors(granularity
): TemporalObject
Parameters
Name | Type |
---|---|
granularity |
Granularity |
Returns
TemporalObject
Inherited from
TemporalObject.setColors
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:47
setData
▸ setData(data
): Buckets
Parameters
Name | Type |
---|---|
data |
TimelineData [] |
Returns
Defined in
src/calendar-timeline/lib/classes/buckets/buckets.ts:35
setDimensions
▸ setDimensions(dimensions
): DrawableObject
Parameters
Name | Type |
---|---|
dimensions |
Dimensions |
Returns
Inherited from
TemporalObject.setDimensions
Defined in
src/calendar-timeline/lib/classes/drawable.object.ts:52
setGranularity
▸ setGranularity(granularity
): TemporalObject
Parameters
Name | Type |
---|---|
granularity |
Granularity |
Returns
TemporalObject
Inherited from
TemporalObject.setGranularity
Defined in
src/calendar-timeline/lib/classes/temporal.object.ts:36