Line Chart
Introduction
You can check a running example of this Line Chart here.
All chart parameters for the Line Chart can be checked in the API tab.
Basic Example
HTML
<o-chart type="line" x-label="Time" y-label="Amount (€)" service="movements" entity="EMovements" x-axis="DATE_" y-axis="MOVEMENT" x-data-type="time"></o-chart>
Custom Configuration Example
HTML
<o-chart #lineChartBasic type="line" x-label="Time" y-label="Amount (€)" service="movements" entity="EMovements" x-axis="DATE_" y-axis="MOVEMENT" [chart-parameters]="chartParameters" x-data-type="time"></o-chart>
TS
import { Component, ViewChild } from '@angular/core';
import { OChartComponent, LineChartConfiguration, ChartService } from 'ontimize-web-ngx-charts';
@Component({
selector: 'line',
templateUrl: './line.component.html'
})
export class LineComponent {
chartParameters: LineChartConfiguration;
constructor() {
this.chartParameters = new LineChartConfiguration();
this.chartParameters.isArea = [true];
this.chartParameters.interactive = false;
this.chartParameters.useInteractiveGuideline = false;
}
}