Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X
Hello everyone,
I've noticed that on the Bar Chart widget, it's not possible to format the xAxis format. In my case I'm using a DATETIME for the xAxis and I would like to display it as ('MM:dd') and by default this is applied as ('yyyy-MM-dd'). (See image in attachment).
Are there any workarounds for this matter? I'm using ThingWorx v9.1
Best regards,
Hi @rnfonseca , You can modify the service code mentioned in below link to get only dd:MM format.
Hello @anarwal ,
The code you provided is for the Label Chart (not sure if it's applicable to Bar Chart widgets). And it works around the issue. It casts the DATETIME to a STRING value and formats it. If I wanted to I could have created a datashape with a Date under a STRING format, and passed it to the Bar Chart. I was asking for a cleaner way to do it.
Hello @cdias,
Have you tried using the Schedule Chart Widget. You can define the xAxis format by changing the TimeAxisDateFormatToken using MM-dd.
Hope it helps,