trends property

List<double?> trends
getter/setter pair

Data holder for additional trend lines, for this data point.

For a single trend line, we can assign it as a list with a single element. For example if we want "7 days moving average", do something like trends = [ma7]. If there are multiple tread lines, we can assign a list with multiple elements, like trends = [ma7, ma30]. If we don't want any trend lines, we can assign an empty list.

This should be an unmodifiable list, so please do not use add or clear methods on the list. Always assign a new list if values are changed. Otherwise the UI might not be updated.

Implementation

List<double?> trends;