You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trend data matches 1:1 with the corresponding data point.
Cons
Pollutes the DataPoint data. The reason we decided on metadata for benchmarks is to allow us the freedom to add new data without polluting the original DataSeries/DataPoint types.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm exploring the ability to add
TrendIndicators
to our charts, but I'm hung up on how we want to pass the data to the charts.1. Add a trend prop
One option is to add another root level prop from
trends
that we can consume inside the chart when available.Pros
DataSeries
prop.Cons
DataSeries[]
the pass to the chart so that the trends match with their data sets.2. Leverage the
metadata
property onDataSeries
metadata
was added to the beta branch in support of Benchmarks. This would work the same as option #1, but the data just lives elsewhere.Pros
Cons
metadata
is a beta feature and we're not sure if it will stick around.DataSeries[]
.3. Augment
DataPoint
with trend dataWe could push the Trend data along side the
DataSeries
data that's passed to the chart.Pros
Cons
DataPoint
data. The reason we decided onmetadata
for benchmarks is to allow us the freedom to add new data without polluting the originalDataSeries/DataPoint
types.Beta Was this translation helpful? Give feedback.
All reactions