Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lga
crater-ui
Commits
7252d2f3
Commit
7252d2f3
authored
Nov 18, 2022
by
Lionel DURAND
Browse files
Fix affichage certains charts
parents
46561c18
cad2500a
Changes
3
Hide whitespace changes
Inline
Side-by-side
apps/crater/src/composants/diagnostic/charts/ChartBarresHorizontal.ts
View file @
7252d2f3
...
...
@@ -50,12 +50,12 @@ export class ChartBarresHorizontal extends LitElement {
`
;
}
updated
()
{
async
updated
()
{
if
(
this
.
apexOptions
===
undefined
)
return
;
if
(
this
.
chart
===
undefined
)
{
this
.
chart
=
new
ApexCharts
(
this
.
figure
,
this
.
apexOptions
);
this
.
chart
!
.
render
();
await
this
.
chart
!
.
render
();
// Le premier render d'apex ne fonctionne pas dans lit (diagramme vide). Contournement : on attend la fin du render, et on fait un update
this
.
chart
?.
updateOptions
(
this
.
apexOptions
,
true
,
true
);
}
else
{
...
...
apps/crater/src/composants/diagnostic/charts/ChartLignes.ts
View file @
7252d2f3
...
...
@@ -44,12 +44,12 @@ export class ChartLignes extends LitElement {
`
;
}
updated
()
{
async
updated
()
{
if
(
this
.
apexOptions
===
undefined
)
return
;
if
(
this
.
chart
===
undefined
)
{
this
.
chart
=
new
ApexCharts
(
this
.
figure
,
this
.
apexOptions
);
this
.
chart
!
.
render
();
await
this
.
chart
!
.
render
();
// Le premier render d'apex ne fonctionne pas dans lit (diagramme vide). Contournement : on attend la fin du render, et on fait un update
this
.
chart
?.
updateOptions
(
this
.
apexOptions
,
true
,
true
);
}
else
{
...
...
apps/crater/src/composants/diagnostic/charts/ChartLignesDeuxAxesY.ts
View file @
7252d2f3
...
...
@@ -48,12 +48,12 @@ export class ChartLignesDeuxAxesY extends LitElement {
`
;
}
updated
()
{
async
updated
()
{
if
(
this
.
apexOptions
===
undefined
)
return
;
if
(
this
.
chart
===
undefined
)
{
this
.
chart
=
new
ApexCharts
(
this
.
figure
,
this
.
apexOptions
);
this
.
chart
!
.
render
();
await
this
.
chart
!
.
render
();
// Le premier render d'apex ne fonctionne pas dans lit (diagramme vide). Contournement : on attend la fin du render, et on fait un update
this
.
chart
?.
updateOptions
(
this
.
apexOptions
,
true
,
true
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment