rumbin opened a new issue #18234:
URL: https://github.com/apache/superset/issues/18234


   **I can replicate this on both, mixed time-series _and_ time-series bar 
chart v2.**
   
   The D3 format of a saved metric is not respected in the
   
   * y-axis labels
   * tooltips
   * Show Values
   
   #### How to reproduce the bug
   
   1. Have a saved metric defined for a dataset
   2. Have a custom D3 format defined for this metric
   3. Create a diagram of type **mixed time-series**  or ** time-series bar 
chart v2**
   4. Activate the Show Values option
   
   ### Expected results
   
   The y-axis labels, the tooltips and the bar values are formatted according 
to the defined D3 format of the metric.
   
   
   ### Actual results
   
   The d3 format of the metric is entirely ignored.
   
   When overriding the y-axis format via the chart's _Customize_ settings, the 
y-labels and tooltips are respecting this override.
   The bar values need some differentiation here, though:
   
   * time-series bar chart v2: respects the chart's y-axis D3 format
   * **mixed time-series: does not respect the chart's y-axis D3 format**
   
   
   #### Screenshots
   
   * time-series bar chart v2
   
   
![bar_chart_d3_format](https://user-images.githubusercontent.com/1220356/151822372-2f07ec98-2308-48a0-be14-0555ded7a81a.gif)
   
   
   * mixed time-series: (also notice how the bar values are not customizable 
here)
   
   
![mixed_time-series_d3_format](https://user-images.githubusercontent.com/1220356/151822914-68fdafa5-dd34-46fc-acf1-c2284d745762.gif)
   
   
   
   ### Environment
   
   - browser type and version: Chrome  96.0.4664.93
   - superset version: 1.4.0
   - all other versions: as defined in Superset's Docker image
   - Feature flags:
   
   ```
   # stable:
         "THUMBNAILS": True,
         "SQLLAB_BACKEND_PERSISTENCE": True,
         "ENABLE_TEMPLATE_PROCESSING": True,
         "DASHBOARD_CROSS_FILTERS": True,
   
         # experimental:
         "ALERT_REPORTS": True,
         "ALERTS_ATTACH_REPORTS": True,
         "DASHBOARD_NATIVE_FILTERS": True,
   
         # unclassified:
         "ENABLE_EXPLORE_DRAG_AND_DROP": True,
         "ENABLE_DND_WITH_CLICK_UX": True,
   
         # development:
         "DASHBOARD_NATIVE_FILTERS_SET": True
   ```
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to