Hi
The code below is a classic chart with a dataset call D10.
event.source.parent.getComponent('ClassicChart').D10
Is it possible to change the last part dynamically and join this onto the address for the chart.
DatasetPath = "D15"
event.source.parent.getComponent('ClassicChart').+ DatasetPath
Thanks
Aidan
You can place your datasets on the root container of the window. Then use a dropdown list to change the datasets on the classic chart. My script looks like this
[code]if event.propertyName == “selectedValue”:
a1=event.source.parent.amps1
a2=event.source.parent.amps2
selectedChart=event.source.selectedValue
if selectedChart == 1:
event.source.parent.getComponent('Chart').Data=a1
elif selectedChart == 2:
event.source.parent.getComponent('Chart').Data=a2
[/code]
Hi
Not exactly what I was looking for but I got it to work another way
Thanks
Aidan