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

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

How to dynamically pass tooltip for multi line line chart?

SR_10308019
4-Participant

How to dynamically pass tooltip for multi line line chart?

How can we pass dynamic values for the "ValuesTooltip" attribute in Line chart?

 

I have a multi line chart which has the data from multiple source.

 

I used the below code, But It requires the specific data source Number, I cant mention a specific data source number, coz I required the customized tooltip for all the lines not a single line.

 

${DataSourceN:<Infotable-field>} 

 

Someone please help me to achieve this requirement.

 

Thank you.

 

 

1 ACCEPTED SOLUTION

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

Hi @SR_10308019.

 

If our understanding is correct, you need to define a tooltip for each data source but ThingWorx only allows for one tooltip. 

 

The product doesn't currently provide this option.  However, in the 9.4 release coming out in a few weeks, the new combo chart may provide this functionality.  We don't yet have details to verify. 

 

In the meantime, one option would be for you to develop your own widget.   You can also submit a request for this feature on the ThingWorx Ideas forum.

 

Regards.

 

--Sharon

View solution in original post

3 REPLIES 3
slangley
23-Emerald II
(To:SR_10308019)

Hi @SR_10308019.

 

Can you provide more information?  What does your data look like and what are you expecting to display in the Tooltip?  If you can provide some screenshots of your configuration, that would also be helpful.

 

Regards.

 

--Sharon

SR_10308019
4-Participant
(To:slangley)

Hi @slangley 

Tooltip.png

I used Line chart widget to show multiple line data. I used multiple data source to construct each line graph. 

I want to customize the tool tip value for each line (along with the default series data, I would like to add few more additional values coming from the same data source field, Ex: Sat Apr 29 2023; Power: 21; Consumption: 10). 

 

for single line graph I can be able to achieve it by using "${DataSourceN:<Infotable-field>} " command. But for the multiple line chart, I don't know how to do this.

 

Regards

Sugumar Ramasamy

 

slangley
23-Emerald II
(To:SR_10308019)

Hi @SR_10308019.

 

If our understanding is correct, you need to define a tooltip for each data source but ThingWorx only allows for one tooltip. 

 

The product doesn't currently provide this option.  However, in the 9.4 release coming out in a few weeks, the new combo chart may provide this functionality.  We don't yet have details to verify. 

 

In the meantime, one option would be for you to develop your own widget.   You can also submit a request for this feature on the ThingWorx Ideas forum.

 

Regards.

 

--Sharon

Top Tags