cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

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

How to change the tooltip format on Line chart

MM_9023322
14-Alexandrite

How to change the tooltip format on Line chart

Hi team,

I want to change the default tooltip format on the Line chart. We have a requirement where we are using the Line chart as a step chart on Thingworx 9.3 version. The default tooltip is "Wed Mar 02 2022 02:59:16 GMT +0530(India Standard Time), Signal:1", which I want to change to "2022-03-03 02:59:16, Signal:1". I came across the Localization tables in TW where you can customize the tooltip. By following this link https://support.ptc.com/help/thingworx/platform/r9/en/index.html#page/ThingWorx/Help/Mashup_Builder/Widgets/CreatingCustomChartTooltips.html

I created a new token, now I am getting "Signal:1" on the tooltip, but I am not able to understand how I can customize the Timestamp. The default token is "${label}, ${series}: ${value}".

 

Thank you!!

1 ACCEPTED SOLUTION

Accepted Solutions
slangley
23-Emerald II
(To:MM_9023322)

Hi @MM_9023322.

 

The release of ThingWorx 9.3.4 is now available on the PTC download site.  Hopefully, it will resolve your issue.

 

Regards.

 

--Sharon

View solution in original post

14 REPLIES 14
slangley
23-Emerald II
(To:MM_9023322)

Hi @MM_9023322.

 

You may have to change the way the data is stored in order for the tooltip to display per your requirement.

 

Regards.

 

--Sharon

 

slangley
23-Emerald II
(To:slangley)

Hi @MM_9023322.

 

Something else.....I assume you already have the XAxisType set to Date/Time.  If so, there is an XAsixDateFormatToken that may work but you will have to play around with it.

 

Regards.

 

--Sharon

 

We want to change the datetime format on the hovering to only Date or remove the timezone from the tooltip . Please let me know if you have any input on this.

@slangley 

slangley
23-Emerald II
(To:slangley)

Hi @MM_9023322.

 

We recommend opening a case for this.  In our testing, it doesn't appear to be working as expected.  Please let me know if you would like me to open the case on your behalf.

 

Regards.

 

--Sharon

 

 

 

Yes please 

slangley
23-Emerald II
(To:NG_9802022)

Hi @NG_9802022.

 

The case has been created under your credentials.  You should be receiving an email with the case number.

 

Regards.

 

--Sharon

Did you get a solution for this? i am looking for the same. thanks!

no

HM_10184200
5-Regular Member
(To:slangley)

Excuse me @ MM_9023322  , have you found any solution for this? Im also facing the same issue

MM_9023322
14-Alexandrite
(To:HM_10184200)

@HM_10184200, not yet. We have raised a ticket with PTC support, we are still in discussion with them.

HM_10184200
5-Regular Member
(To:MM_9023322)

@MM_9023322   I just found a trick, to modify the timestamp in the tool tip, I create extra field on the infotable, that field is to store the customized timestamp. To select those timestamp, I use ${Data:timestampForToolTip} on the ValuesToolTip.  timestampForToolTip is the name of the extra field that I've created. I customize my timestamp in my service and store them as string in the output infotable.

HM_10184200_0-1648718072653.png

 

 

in my case, i change my timestamp into HH:MM format asasdsd.jpg

 

Here is the result: HH:mm followed with the series and value:

 ressss.jpg

i will try this! thank you

slangley
23-Emerald II
(To:MM_9023322)

Hi @MM_9023322.

 

The release of ThingWorx 9.3.4 is now available on the PTC download site.  Hopefully, it will resolve your issue.

 

Regards.

 

--Sharon

slangley
23-Emerald II
(To:MM_9023322)

Hi @MM_9023322

 

We will be providing a fix for this in ThingWorx 9.3.4.  I don't yet have the release date, but it is estimated to be available in the next 2 - 3 months.

 

Regards.

 

--Sharon

Top Tags