@Dieter
Country specifific datetime cannot be set via configuration, but using custom Dates.LOCALES["german"]
If you have a DataFrame with a column date
in european(german) format, then you must proceed as follows:
using PlotlyJS, DataFrames, Dates
Dates.LOCALES["german"]= Dates.DateLocale(
["Januar", "Februar", "März", "April", "Mai","Juni",
"Juli", "August", "September", "Oktober", "November", "Dezember"],
["Jan", "Feb", "Mar", "Apr", "Mai", "Jun", "Jul", "Aug", "Sep",
"Okt", "Nov","Dez"],
["Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag", "Sonntag"], [""])
#your data frame with date given as a string "day-month-year":
df= DataFrame(date=["15-0$k-2021" for k in 1:9], A=rand(10:20, 9))
df[!, :date] = Date.(df.date, "dd-mm-yyyy") #convert strings to Date
#set Date in the format you want to be displayed in your plot:
newdate= [Dates.format(d, "dd U yyyy"; locale="german") for d in df[!, :date] ]
#or newdate=[Dates.format(d, "dd u yyyy"; locale="german") for d in df[!, :date] ]
fig = plot(
scatter(x=newdate, y=df[!,:A], color=:symbol),
Layout(width=700,
title="German style date", xaxis_tickangle=-45
)
)