Skip to main content
14-Alexandrite
November 18, 2019
Question

Dynamically Update Datafield in Timeseries chart

  • November 18, 2019
  • 1 reply
  • 1838 views

I need to set/unset datafields in a timeseries chart based on selection of a checkbox for datafield selection in a runtime mashup. ex: I have timeseries chart with temperature and humidity as datafields in timeseries. In mashup, user is provided with a checkbox for selection of temperature, humidity.Based on selection of checkbox, timeseries to show data from datafields of temperature, humidity dynamically on mashup. Does timeseries widget properties support such dynamic setting of datafield, if not I will explore other chart widgets.

 

Thanks..

1 reply

22-Sapphire I
November 18, 2019

The time series chart could do it in two ways.

1. auto configure, just generate the data and drop it on the chart

2. pre-configure the chart, but just don't generate data for certain series. You'll see a label but no data points. for items you are choosing to omit.

nhksrd14-AlexandriteAuthor
14-Alexandrite
November 20, 2019

PaiChung,

 

Thanks for response.

Any pointers on second option: preconfigure chart but dont generate data in design, but generate data in runtime.

 

Regards,

Hari

1-Visitor
November 20, 2019

Hi Hari,

 

I think the below workaround will meet your requirement.

1. Give the static datafield for the time series chart. for example "Line1";

2. Based on the selection try to rename the datafield column name in the input data.

for example if you select the "temperature" means rename the temperature column in the input data to "Line1" in run time execution service.

 

Thanks & regards

Sugumar R