Skip to main content
1-Visitor
February 24, 2021
Question

Select data point on timseries graph and then display selected rows on grid.

  • February 24, 2021
  • 1 reply
  • 4301 views

Hi Team,

 

Suppose I have a timeseries chart and a grid bounded with same service.

 

I just want to select either data point on graph to get highlighted on grid or changing the rows selection on grid will select any data point on graph.

 

Please guide with both process logic.

 

Thanks in advance.

1 reply

16-Pearl
February 24, 2021

Hi @ranjank,

 

If you bind the same data to both widgets and allow selection of rows in the Grid (set RowSelection parameter to either Single or Multiple) you should be able to select a point on the Chart which will automatically select the corresponding row in the Grid and vice-versa.

 

If you are seeing a different behavior it might be because of the following bug on the new Line Chart widget in 9.0.0 to 9.0.3 : Line and Bar Chart widgets do not support selection of data entries in ThingWorx. This has been fixed in ThingWorx 9.0.4 and 9.1.0.

 

I attached some example entities from 9.0. If you view the ChartBug.Mashup in 9.0.4 or later (or 9.1.0) you will see the working behavior on both the new Line Chart and the legacy Time Series Chart.

ranjank1-VisitorAuthor
1-Visitor
February 24, 2021

@c_lowy 

 

Have checked and found that when selecting the chart type property as Line Chart of widget Line Chart then only it is working fine.

But if we use 'Run Chart' in chart type property, then row selection on grid is not working after clicking on data points of graph.

Please check at your end too.

 

I have two more questions:-

 

1) can we reduce the size of circle data points listing on the graph line?If yes then let me know the property name and its values in example.

2) Suppose in my graph more than one field are populating, then can we show above data points only to the specific field as per our requirement. Because datapoints are visible on all the lines which we don't required.

16-Pearl
February 25, 2021

According to my tests selecting a row from the Grid does select the corresponding point on the Chart no matter the ChartType, however it is the opposite that doesn't work (also no matter the ChartType). Could you confirm this is the behavior you were talking about ? I will report this to our R&D department if it hasn't been reported yet.

 

Regarding the 2 other points you mentioned, could you provide an example or a screenshot to show what you are trying to achieve ? Thanks in advance !