[mixed time-series] Metric name is shown in legend instead of label
See original GitHub issueA clear and concise description of what the bug is.
How to reproduce the bug
- Create a metric with a custom label
- Use this metric in Mixed Time-series Chart
Expected results
Custom label for metric is shown in legend.
Actual results
Metric name is shown in legend.
Screenshots
If applicable, add screenshots to help explain your problem.
Environment
(please complete the following information):
- browser type and version: Chrome 96
- superset version:
master
- python version:
3.9
- node.js version:
14.15.5
- any feature flags active:
Checklist
Make sure to follow these steps before submitting your issue - thank you!
- I have checked the superset logs for python stacktraces and included it here as text if there are any.
- I have reproduced the issue with at least the latest released version of superset.
- I have checked the issue tracker for the same issue and I haven’t found one similar.
Additional context
This issue is not present in other time-series echarts
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (8 by maintainers)
Top Results From Across the Web
Metric and label naming - Prometheus.io
An open-source monitoring system with a dimensional data model, flexible query language, efficient time series database and modern alerting approach.
Read more >Timeseries Widget - Datadog Docs
A timeseries widget showing the average system.cpu.user for a host ... the display on the graph and legend, which is useful for long...
Read more >KB221661: Graph legend displays metric name for an attribute ...
1 product when attributes with blank values (not null) in a graph legend are displayed when using the option 'suppress last level labels'...
Read more >Using SQL data to label time series (via v7 transformations?)
In Grafana, we would like to display some timeseries metrics, labeled with the corresponding system names from the SQL table. We've previously ...
Read more >Using metric math - Amazon CloudWatch - AWS Documentation
Function Arguments Return type* Supported for cross‑account?
ABS TS. TS TS. TS ✓
ANOMALY_DETECTION_BAND TS. TS, S TS
AVG TS. TS S. TS ✓
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
There is a related pr can refer to, https://github.com/apache-superset/superset-ui/pull/1337 is to fix the timeseries chart, the logic is basically the same.
@junlincc I would like to work on this issue if it’s available . Also, any direction regarding this issue would be appreciated. Thanks