-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dashboard: Add annotations for Warning without TAN (#3434)
Co-authored-by: Thorben Kurowski <[email protected]>
- Loading branch information
1 parent
5ab93e3
commit a49d744
Showing
4 changed files
with
151 additions
and
111 deletions.
There are no files selected for viewing
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,24 +1,25 @@ | ||
import $ from 'jquery'; | ||
import ApexCharts from 'apexcharts' | ||
import ApexCharts from 'apexcharts'; | ||
import { Subject } from 'rxjs'; | ||
|
||
import chartOptions from './chart/options.js'; | ||
import { update } from './chart/update.js'; | ||
let chartsAry = []; | ||
|
||
window.ApexCharts = ApexCharts; | ||
Object.assign(Apex, chartOptions); | ||
Object.assign(Apex, chartOptions); | ||
|
||
$(() => { | ||
// loop over all board | ||
$(".analyseChart").each(async function(i){ | ||
// init ApexCharts with base options | ||
new ApexCharts(this, Object.assign({}, {chart:{id:`chart${i}`}})).render(); | ||
|
||
const chart$ = new Subject; | ||
await chart$.subscribe(e => update(e, i)); | ||
chartsAry.push(chart$); | ||
}); | ||
// loop over all board | ||
$('.analyseChart').each(async function (i) { | ||
// init ApexCharts with base options | ||
const chart = new ApexCharts(this, Object.assign({}, { chart: { id: `chart${i}` } })); | ||
chart.render(); | ||
|
||
const chart$ = new Subject(); | ||
await chart$.subscribe((e) => update(e, i)); | ||
chartsAry.push(chart$); | ||
}); | ||
}); | ||
|
||
export default chartsAry; | ||
export default chartsAry; |
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