Replies: 15 comments 19 replies
-
This is a great idea. There might be some ways to hack a solution if there's something urgent (e.g a multiple time series chart, with area and line) but @villebro probably has the best context on generalizing a real solution (since he wrote the prophet feature). |
Beta Was this translation helpful? Give feedback.
-
@atronchi this functionality already exists on the "Time-series line chart", but is unfortunately undocumented. Let's say you have a chart with a series
You can achieve this by creating a separate metric for each (I mocked some series using the If I remove the |
Beta Was this translation helpful? Give feedback.
-
Hi - I will comment here since I can't geti to work. Prophet is installed and works (creating forecasts).
This is the SQL that is cerated by Superset:
I am using Superset 1.5.0 with "GENERIC_CHART_AXES" enabled. |
Beta Was this translation helpful? Give feedback.
-
Hi @villebro I tried to to create a time series chart for the birth_names dataset with a confidence interval using the data from the below query: For the Time-series Line chart I am getting three lines for the metrics: How do I get the error band for this data? |
Beta Was this translation helpful? Give feedback.
-
@atronchi you need to rename metrics for the confidence levels to |
Beta Was this translation helpful? Give feedback.
-
We've upgraded to superset 1.5.0, and still see no rendered confidence
band.
The opacity bug fix is shown as 'merged' now; did it get reverted in 1.5 or
something?
#18566
[image: image.png]
…On Mon, Jun 20, 2022 at 10:23 PM Ville Brofeldt ***@***.***> wrote:
@atronchi <https://github.com/atronchi> you need to rename metrics for
the confidence levels to SUM(name)__yhat_upper and SUM(name)__yhat_lower
if your main metric is SUM(name). Click on the title of the metric in the
modal to do this.
—
Reply to this email directly, view it on GitHub
<#19145 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABFNZ4DOSVBZALDPYWXGUGTVQFGW3ANCNFSM5QXCG3NA>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Hi @villebro Running Superset 2.0.0 and the confidence bands are working great in most scenarios! Mocked up a quick example using the Unfortunately, when the Any help understanding if this is the expected behavior, a bug, or just something I am missing would be most appreciated. |
Beta Was this translation helpful? Give feedback.
-
How used |
Beta Was this translation helpful? Give feedback.
-
@sonfire186 One thing that needs to be mentioned is that you currently can't use grouping dimensions with confidence intervals (the series name needs to be end exactly in |
Beta Was this translation helpful? Give feedback.
-
Is there also a way to label the confidence interval? I am using it in a mixed chart to compare data (in series b, scatter plot) with predictions (series a, lines) |
Beta Was this translation helpful? Give feedback.
-
Hello @villebro, I have this problem trying to graphic confidence interval, we are using superset 1.5.0 |
Beta Was this translation helpful? Give feedback.
-
Does anyone else think it would make sense to promote this discussion to a new feature request for Superset? Given the additional discussion there are clearly several others interested in the feature and the current implementation is both undocumented except here and limited in capability (e.g. can't use grouping dimensions as @villebro points out above). Even though I have kids and little evening time now for OSS contributions, I might even work on this myself since I often come back here hoping that it's done already so I apparently have a persistent need for such vis, but I would need more discussion with @villebro and maybe other superset devs to figure out what changes to make where to make it happen. Here's what I would like to see:
Thoughts? |
Beta Was this translation helpful? Give feedback.
-
Hi, I am new to superset and have trouble showing the intervals. It says "Time-series line chart" is now legacy/deprecated, i.e., cancelled? I tried to follow the infos given here, using __yhat_upper etc, but it does not work and shows separate curves instead. Any help is welcome, thanks! |
Beta Was this translation helpful? Give feedback.
-
(SOLVED) Hello @villebro , Hello everyone, Superset Version:
Then I tried a third approach wherein I used the Line Chart with the first approach that @villebro suggested. While it helped with the interval issue, it introduced a tiny bit of another one that now the line chart isn't a line chart anymore; it is a scatter plot. The "Series Style" in the "Customize" tab is set to SolutionFollowing on the solution mentioned here, I was finally able to get this right by renaming the main metrix to |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Somehow I can't find any mechanism to display a confidence interval in any of the line chart types available in Superset, but it seems like the functionality is there under the hood since the new prophet based forecasting can display confidence intervals.
Would it be possible to add a capability to line charts for displaying a time series with confidence intervals similar to this Altair example?
Ideally we should support both symmetric and asymmetric confidence intervals, maybe by giving the user additional options in the query section of chart config to provide a column for upper and lower confidence interval bounds.
Beta Was this translation helpful? Give feedback.
All reactions