src/app/services/general-timeline/general-timeline.service.ts
A general timeline chart diagram service. ~extends GanttChartService
Properties |
|
Methods |
|
Accessors |
constructor(chartColorService: ChartColorService, chartModel: ChartModel, uiService: UiService)
|
||||||||||||||||
Constructs the Portfolio service. ~constructor
Parameters :
|
Public addChart | ||||||||||||
addChart(items: any, filteredItems: any)
|
||||||||||||
Adds a gantt chart.
Parameters :
Returns :
DeepPartial<ChartConfiguration>
A ChartConfiguration object. |
Protected backgroundColor | ||||||||||
backgroundColor(color: string)
|
||||||||||
The background color.
Parameters :
Returns :
{ backgroundColor: string; hoverBackgroundColor: string; }
A background color object. |
Protected borderColor | ||||||||||
borderColor(color: string)
|
||||||||||
The border color.
Parameters :
Returns :
{ borderColor: string; hoverBorderColor: string; }
A border color object. |
Public drawChart | ||||||||||||
drawChart(chartType: string, chartConfiguration: any)
|
||||||||||||
Draws a chart.
Parameters :
Returns :
void
|
Public initColors |
initColors()
|
Initializes the color scheme delegate.
Returns :
void
|
Public refreshCharts |
refreshCharts()
|
Invokes redrawing the charts.
Returns :
void
|
Protected tooltip | ||||||
tooltip(frequencies?: any[])
|
||||||
Type parameters :
|
||||||
The tooltip.
Parameters :
Returns :
DeepPartial<DeepPartial<TooltipOptions<TType>>>
A tooltip object. |
Public Readonly chartModel |
Type : ChartModel
|
The chart model injected dependency.
|
Public optionsScalesXAxes0Ticks |
Type : object
|
Default value : { min: 25571, max: 25571 + 65 * 365 }
|
The X-axis range. ~override |
Public Readonly uiService |
Type : UiService
|
The ui service injected dependency.
|
Protected filteredItems |
Type : []
|
Default value : []
|
The current context-relevant items. |
Protected items |
Type : []
|
Default value : []
|
All background items shown. |
data |
getdata()
|
The current context data. ~override
Returns :
ChartData
|