Incubator-superset: Adding annotation formula to bar chart add more bars instead of line

Created on 3 Dec 2020  路  7Comments  路  Source: apache/incubator-superset

Describe the bug
A clear and concise description of what the bug is.

To Reproduce
Steps to reproduce the behavior:

  1. Go to explore
  2. Create time-series bar chart
  3. Add annotation layer
  4. Set y=constant e.g. y=100 as formula

image

Expected behavior
A horizontal line at y 100

Screenshots
It adds a bar for each grouped bar instead.

Pasted_Image_11_20_20__11_37_AM

Environment (please complete the following information):

  • superset-ui version: current
#bug

Most helpful comment

@kristw @graceguo-supercat try Echarts time series bar chart, it does support formula annotation line. does it work for you user cases?

Screen Shot 2020-12-08 at 9 31 50 PM

All 7 comments

this issue is duplicate here and already being fixed (sort of, as bar chart does not support this annotation), waiting for your reviews~ @kristw

if this is important to your users, I can open an enhancement issue separately

@kristw

issue is resolved by https://github.com/apache/incubator-superset/pull/11876
additional enhancement will come later.

@graceguo-supercat Please correct me if I misunderstood since you report the issue, but I thought the bar chart support this previously and this is a regression?

If the bar chart did not support this before then please re-close the ticket.

@kristw No, i am not sure this is a regression. This is probably just a bug for a long time but no one reported before.

@agatapst confirmed that line formula annotation was not supported in the past. @kristw do you mind opening an enhancement issue and close this one?

sgtm then. Thank you all.

@kristw @graceguo-supercat try Echarts time series bar chart, it does support formula annotation line. does it work for you user cases?

Screen Shot 2020-12-08 at 9 31 50 PM

Was this page helpful?
0 / 5 - 0 ratings