src/app/services/chart/chart.service.ts
A chart diagram service.
Properties |
|
Methods |
|
Accessors |
constructor(chartColorService: ChartColorService, chartModel: ChartModel, uiService: UiService)
|
||||||||||||||||
Constructs a chart. ~constructor
Parameters :
|
Public addLanguageChart | |||||||||||||||
addLanguageChart(languages: any[], responsive)
|
|||||||||||||||
Adds a language 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 Readonly uiService |
Type : UiService
|
The ui service injected dependency.
|
chartConfiguration | ||||||
getchartConfiguration()
|
||||||
Adds a chart of frequency objects.
Parameters :
Returns :
DeepPartial<ChartConfiguration>
|