-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Mqtt and made changes in home page
- Loading branch information
1 parent
64e466c
commit 19981e5
Showing
11 changed files
with
891 additions
and
153 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
export interface ChartModel { | ||
info1?: string | ||
info2?: Float32Array | ||
} | ||
name: string | ||
data?: Float32Array | ||
categories?: Float32Array | ||
text: string | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,38 @@ | ||
import { Component } from '@angular/core'; | ||
import { Chart} from 'chart.js/auto'; | ||
import { ChartModel } from 'models/chart.model'; | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
import { | ||
ChartComponent, | ||
ApexAxisChartSeries, | ||
ApexChart, | ||
ApexXAxis, | ||
ApexDataLabels, | ||
ApexTitleSubtitle, | ||
ApexStroke, | ||
ApexGrid | ||
} from "ng-apexcharts"; | ||
|
||
export type ChartOptions = { | ||
series: ApexAxisChartSeries; | ||
chart: ApexChart; | ||
xaxis: ApexXAxis; | ||
dataLabels: ApexDataLabels; | ||
grid: ApexGrid; | ||
stroke: ApexStroke; | ||
title: ApexTitleSubtitle; | ||
}; | ||
|
||
@Component({ | ||
selector: 'app-chart', | ||
templateUrl: './chart.component.html', | ||
}) | ||
export class ChartComponent { | ||
|
||
export class ChartsComponent implements OnInit { | ||
@Input() name!: string | ||
@Input() data?: Float32Array | ||
@Input() categories?: Float32Array | ||
@Input() text!: string | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters