Hello, I am using Thingworx 9.6.4. I have a Combo Chart widget inside a Mashup and I would need to reduce the format of the reference that is presented on each point of the graph.
In particular, the following information is presented to me
Wed Jun 11 2025 08:45:50 GMT +0200 (Central European Summer Time), value:1
and I would like to reduce this information to
2025-06-11 08:45:50, value: 1
Thanks
Dimitri
Solved! Go to Solution.
Hi @dbologna,
Looks like the ${label} token does not respect the XAxisDateFormatToken property configured in Combo chart.
I think it's a bug which you can report through Support case.
The same issue was reported before for Line Chart: https://www.ptc.com/en/support/article/CS381734
As a workaround, you can add a new column in your Combo Chart data with formatted datetime string and configure that column data using ${Data:< String field>} in the ValuesTooltip property of the Combo Chart.
See the workaround section in https://www.ptc.com/en/support/article/CS369558
Best,
The timestamp (Wed Jun 11 2025 08:45:50 GMT +0200 (Central European Summer Time)) at X-axis?
You can use dateFormat function to format the timestamp in the serivice.
// dateValue:DATETIME
let dateValue = new Date();
// dateFormat(dateValue:DATETIME, dateFormat:STRING):STRING
let formattedDate = dateFormat(dateValue, "yyyy-MM-dd HH:mm:ss");
Hi @dbologna,
Looks like the ${label} token does not respect the XAxisDateFormatToken property configured in Combo chart.
I think it's a bug which you can report through Support case.
The same issue was reported before for Line Chart: https://www.ptc.com/en/support/article/CS381734
As a workaround, you can add a new column in your Combo Chart data with formatted datetime string and configure that column data using ${Data:< String field>} in the ValuesTooltip property of the Combo Chart.
See the workaround section in https://www.ptc.com/en/support/article/CS369558
Best,