rte-antares-rpackage / antaresViz

ANTARES Visualizations

Home Page:https://rte-antares-rpackage.github.io/antaresViz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

setProdStackAlias

IsabelleBailleul opened this issue · comments

Cette fonction fonctionne lorsqu'on définit au moins deux "lines" :
lines = alist("Consommation" = LOAD,
"test" = 0),
lineColors = c("#a65628", "#EB9BA6")
mais ne fonctionne pas si on en définit une seule, voire pas du tout !

Bonjour,

Je ne suis pas arrivé à reproduire le problème, pourriez-vous m'envoyer par mail un jeu de données et un exemple, du type :

setProdStackAlias(
  name = "Wind and solar",
  lines = alist(wind = WIND),
  lineColors = c("green")
)
prodStack(x = mydata, unit = "GWh", stack = "Wind and solar", interactive = FALSE, areas = "a")

# sauvegarde des données pour reproduire le problème
saveRDS(mydata, file = "mydata.rds")

Merci,

Victor