You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "vedantprajapati17 (via GitHub)" <gi...@apache.org> on 2024/10/08 22:49:51 UTC
[I] Confidence Interval Does not work propery for Mixed Charts [superset]
vedantprajapati17 opened a new issue, #30554:
URL: https://github.com/apache/superset/issues/30554
### Bug description
I’ve noticed that the confidence intervals in charts do not display correctly at all after Superset 3. There was also an issue previously that it wouldn’t show negative values of confidence intervals. The way to set them up is using (name_yhat for actual value; nameyhat_upper for upper bound; and name_yhat_lower for lower bound). However, they now result in unexpected behaviour.
Prior to the superset 3.0, the intervals would only work for positive values. If an interval goes into the negative it is not plotted, and only the positive values are. If the full chart is in the negative domain the confidence interval is plotted in the positive area.
[What is currently being sent](https://echarts.apache.org/examples/en/editor.html?version=5.5.0&code=PYBwLglsB2AEC8sDeAoW7YCICuBnApgKoAqAwpgFyxgBO2-ANGhpgOY0QAmlyzGLAYxhgAhhGgAZEQCN8AGx616Tfv0xz8AMzA8AzAFYVq9Jg6sAFjqoAmAAxHjmMKB4AWe31WZpwMM4C2PHaeAL4OWAAeAIIRELg8qMYmYACeIPg8mABuInL0mOFq0CL--ADiIiA8AIyGnkUl-BLAAiKQMJn-XJwaBfUsIrG4UrIKVEhh_SZd0MA0xBACANYJk0lYMwCS0GD4NDljsB7rmDOZnG0iALLifSf-g-eXV4-h4ZgpMXE8ANpTvOs1J8hiN5AAlXxtKDQHjHQHJNIZKjZXL5QpJU7iOYLZardGOGZzADKIDkEDAEnESOQa3hWEGcVBhwm-K8xVKFSqVFqrIapWarXaMORXU4PQyvIGZNY0BxS3iVE0uQI_1pxkSdI-X2GMnBkKFsMlCPSmQOaP-akJ80WK3GasBmFwpPJlOg1I1dJYuHMwAA7jwlXIVZ77fcsTQSWSKVS8RaBiDdczQxjchAZXKFbBA8GkiFPABdd7OYBySBcgEpkDpaCcYjAABCwE4KUUdEY_0dPv9VCU7ZOtDTrD2mQZ8TennU-CHNYSHbmEHwO0yPo4AC9hLk7hjvX7W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LMyd_ppwztCTI2clHwhUcYFGoivBF1oc5RoNcPKXAbjVPugU576B3hfYeB1e4RNqGEo-QTR7RNCYfNKQSypjySefOJESV7pNiSk7JnVcnJMbtk4aiS8klM3rNIpmT8mbxbq3GJxTAkRIfuUlKz9Wavyun_L
-mof69PuqzIBEizbx3AUDSB-goikGqJlSGiCNbSwRjfVxBDEQYJjPTHBci8E6NZoQvYxDqZkN7PTBhtAmG81wI0E2Mo6EmHERwsZXClnIMRqgzUhtjam3Fj5C2bpRl_PNjI3ZWBnaKPdinEZzzgXx24QjJGkUXGAjUV6DRfstG033OYvRBjI7R1ji8_5FjtFB3-bY8k9is4uFzmJfOwzuDIg0pXUC1dmUO1ZZqeuVBj6-SCQ0mKSLamVNbvFOeFSWnDyyhK5p_VUmypFVKveADgrCs7uEzehTomSvlaUxVGqslVINYPTVe9BWRXVaao1rc2nDytYtTpoFunv1ujUB62pBlvWGbsYBotQHjMBkxCCEE4oQVcK4B5XgEU1E-ZxdBx5BTISjY6HZjs9nkv7GYIhVISE03ITizUVDliMN2MwzINzSh3JhGwwFsL3EnBjdyONDpvlCN-Q2jETz_VmPjqC9N4KFFaWRS2k4FifaYsOGcyheLyKGMJaY4l5iuxkpTpSzOWBHF0tzAWIsuM5A-Feu4pwklvUnFkmQi1LBNBKzANgRWvbHCeQAFq40CEu_pnqP6vWzJmom5JVZ90wOuYA76sAgf8LABWSso0nGkNQzIisGZzHwLACDTifIorEqqHSLAX1vt-MdEIABuIAA)
[What should actually be sent](https://echarts.apache.org/examples/en/editor.html?version=5.5.0&code=PYBwLglsB2AEC8sDeAoWsCuBnApgVQBUBhALljACcMcAaNWAcwogBMzV10BjGMAQwjQAMnwBGOADZlK1Op1gScAMzBkAzAFY5nZgwAWq2ACYADNvRhQZACxn66UcDCWAtmVP0AvtoAeAQR8ILHZ7cgBPEBwyAHJIFxxo81hoPniAcT4QMgBGLVCU-KFgLj5IGBiXVhZFRNC-QKwRcSlkb1DK6GAKAgguAGt2NvkOgElo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Zyw7Jjz8YyiCsprYAe9qchenV-xiS7BuG0auXGqVdBmuaFvrQwZAx-Qdo26Itp1XO9soQ7juLM7ZMu_7Pa0sOnqIyPHQoHA-GrkmaxAVrw6IgA6IxG-uN6Pq-wH0Crj326BkGwd-CGocZ65maZ7auyRlHQ3J7PdWx0NcZ-AmLuJ76tIRzfKepxFXhiemF7LPkkkB9n89k8khZ1EXLIVkKNBizgVL0kkP8_JGDlrkX-2klZgL1k5KBQUNb6SAXAnWiCVYG1gSrb-4DLJmzARbHUVtEpO3tkKE4mVbbOzyhMd2N0a5lQwj7SqGg_BEGyMZYOnk66XhMAPeQ0c-oojjiNUGZ8o4p0mGnRamdeyF3WsXA6Ewy6_CwAST6rJK5_Qnsfc0nCI5w1ei4d6fBPqclHr9LUbctFaWBiwYRs9Qzzxhp5N2FjTHNU7o9DqMMeG6lXjvFoWdtp-L3vjQmR9TGn0Tujc-NMr501ALfC099WbmifvRSSOpX6_DSfzd-KxRb2VUvpLB_8inANAcUxWpS4EwOKfAkktSda1LQbUkKxSzaOQDHg80BCb
YpRyHiR25DiGuyoS4iy3sYLHmPDpY81hrAhx0SSbxFhvgxCHKUe8giE4-i3hYMRs0UTpyWgEmRu19qlxOso-IqjoDqPMZo0xizOp6J1EPIxI8LLjxoZPeQ1jbHRDnoxLxLzVq-PXv46Rq0glAX3qE5oPyJxk0iRTCyVMYnlDiQzLqfJAzBhGhIRwOVIz02GaRQweR5BKBbmADAzdJ7yQAFojTcJYkhDQiHIt2ZwSAYAAYWXQK2YALLoiCpcFGZufAQ4OF2jEZua0ug4FgKKhJd84Y4rLNoRlzLzidM8AAbiAA)
Modifying the order of the inputs currently has an impact on how the behaviour of the mixed charts works due to a bug in echarts. This aims to resolve that issue on superset's end
### Screenshots/recordings
_No response_
### Superset version
3.1.3
### Python version
3.9
### Node version
16
### Browser
Chrome
### Additional context
_No response_
### Checklist
- [X] I have searched Superset docs and Slack and didn't find a solution to my problem.
- [X] I have searched the GitHub issue tracker and didn't find a similar bug report.
- [X] I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
--
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: notifications-unsubscribe@superset.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Confidence Interval Does not work properly for Mixed Charts [superset]
Posted by "villebro (via GitHub)" <gi...@apache.org>.
villebro closed issue #30554: Confidence Interval Does not work properly for Mixed Charts
URL: https://github.com/apache/superset/issues/30554
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org
Re: [I] Confidence Interval Does not work propery for Mixed Charts [superset]
Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #30554:
URL: https://github.com/apache/superset/issues/30554#issuecomment-2400953072
<!-- Greeting -->
Hey @vedantprajapati17! I'm here to help you with any bugs, questions, or contributions. Let's get this sorted out together!
<!-- Answer -->
The issue you're experiencing with confidence intervals in mixed charts after Superset 3.0 might be related to how negative values are handled. Superset's ECharts integration has a known limitation where confidence bands are not rendered in stack or area charts, which might affect how negative intervals are displayed <sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/Timeseries/transformers.ts)</sup>.
Additionally, if the intervals are not displaying correctly, it could be due to a bug in ECharts or the way Superset processes the data. You might want to check if the data is being transformed correctly before rendering.
If modifying the order of inputs affects the behavior, it could be a workaround for the current bug. Ensuring that the data is structured correctly with `name_yhat`, `name_yhat_upper`, and `name_yhat_lower` is crucial.
For a more specific solution, reviewing the data transformation logic in the `transformProps` function might help identify any issues with how confidence intervals are processed.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
--
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: notifications-unsubscribe@superset.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org