question

Ryosuke S avatar image
0 Likes"
Ryosuke S asked Jordan Johnson commented

About Displaying Months in Gantt Chart

Hello

I've been displaying Gantt chart in FlexSim 2019.

The simulation range goes over months so I see the label

displaying August, September... (See attached red circle)

However, the label for the month are in old style Japanese phrase.

The same thing happens for both English and Japanese version.

Also for version 2020 as well.

We are guessing that maybe FlexSim is referring somewhere in Windows OS,

because it doesn't seem to be the matter of translation as it is occuring

in both languages.

Could you confirm this? Also, are there any way to correct this?


Thank you in advance,

Rick


FlexSim 19.0.9
flexsim 19.0.9dashboard display
capture003.jpg (29.3 KiB)
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jordan Johnson avatar image
0 Likes"
Jordan Johnson answered Jordan Johnson commented

The charts ask for your windows region:

applicationcommand("getlocaleinfo", 0x5c)

Then the charts try to find a matching node in this list:

MAIN:/project/library/statistics/GenericChart>behaviour/eventfunctions/localeInfoD3/timeFormats

Each node in that list has JSON for the various display options. For example, the ja-JP node has these settings:

{
"dateTime":"%Y %b %e %a %X","date":"%Y/%m/%d",
"time":"%H:%M:%S",
"periods":["AM","PM"],
"days":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],
"shortDays":["日","月","火","水","木","金","土"],
"months":["睦月","如月","弥生","卯月","皐月","水無月","文月","葉月","長月","神無月","霜月","師走"],
"shortMonths":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]
}

I got these settings from here:

https://github.com/d3/d3-time-format/blob/master/locale/ja-JP.json

It sounds like these are old style symbols. If you would like different symbols or formatting, you'll need make a JSON text with the settings you want. Then you have to find a way to replace the settings in FlexSim with the settings you want. If you post it as a reply here, or send it to [email protected], I can put the new settings in as default for all users, in the next 20.0 release.

· 6
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Ryosuke S avatar image Ryosuke S commented ·

@jordan.johnson, Thank you for your reply. Could you put the new settings as default for all users? "shortMonths" will do fine. Best Regards,

0 Likes 0 ·
Jordan Johnson avatar image Jordan Johnson ♦♦ Ryosuke S commented ·

Just to be sure I understand, are you saying that you would like these settings?

{
"dateTime":"%Y %b %e %a %X","date":"%Y/%m/%d",
"time":"%H:%M:%S",
"periods":["AM","PM"],
"days":["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"],
"shortDays":["日","月","火","水","木","金","土"],
"months":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],
"shortMonths":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]
}
0 Likes 0 ·
Ryosuke S avatar image Ryosuke S Jordan Johnson ♦♦ commented ·

@jordan.johnson, I'm not sure if I understand your question correctly. I was thinking that your correction will just make the label of the month in Gantt chart to refer to "shortMonths". I don't know how much effect there will be when you make these changes. Does this effect to all releases? Or just the Japanese version?

0 Likes 0 ·
Show more comments