Problems with sorting dataset (component error)

Hi,

I have some issues regarding sorting a dataset on the binding for a time series chart. Tried looking around the forum for some answers but could find something that matches this case.
The gateway is running on version 8.1.47.

My setup on my data-binding looks like this, pretty straight forward, and I get the result to show in the chart.


Then I'm adding a script transform, and converting the dataset to a pyDataset. This still works, and I'm getting my results.

But when applying the dataset.sort function I get an component error on the chart even tough the script has no errors and returns a new dataset.


I have no errors in the logs, or on the component itself. The returned dataset on the binding looks correct but the chart doesn't display it. Removing the script transform doesn't work, and it seems to me that I need to delete the chart and redo the process.

Does this look correct or am I doing something completely wrong?

I don't understand.
It's a timeseries chart, it's supposed to show things chronologically. If you sort your data according to anything else, then nothing makes sense.

What are you trying to do exactly ?

1 Like

That kind of makes sence. Im trying to make a duration diagram that shows the number of hours per year with a given load on a selected measurement object.

The data basis for the plot should be: "power data with one data point per hour, retrieved for all hours in a year, then sorted from the highest value to the lowest value. The x-axis would then be a running number."

Should be looking something like this:

Then you need an XY chart, not a timeseries chart. The timeseries chart only works with time on the X axis.

1 Like

Thanks alot! :slight_smile: