Option for Donut Pie Chart
Describe the solution you'd like I succeed to represent donut pie chart like in this map :
Now I think it could be benefit to others to have such option in this plugin.
Describe alternatives you've considered Like in documentation, I just add hole=.3, in core/plot_type/pie.py
https://plotly.com/python/pie-charts/#donut-chart
But better implementation and controlling the size of the hole should be nice. So what is needed to do (please correct me if I'm wrong) ?
- declare option in core/plot_settings.py
- declare option in gui/plot_settings_widget.py
- Add option to .ui
Additional context URL and screen above
@kikislater Where can I find the code pie.py to edit this?
in core/plot_type/pie.py => https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/core/plot_types/pie.py#L42-L43
Thanks @kikislater for helping. @dominijk here are other instructions. Please don't hesitate to add comments if something is not clear.
You should also add an eventual checkbox to the UI (https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/ui/dataplotly_dockwidget_base.ui you can use Qt Designer to do that) and then be sure to add the widget to the correct plot type during the UI refresh (here https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/gui/plot_settings_widget.py#L539).
Finally, depending on the widget and its value, you should pass the parameter to the function https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/gui/plot_settings_widget.py#L952
@ghtmtt and @kikislater thank you, so i'd need to install the plugin from my own build rather than just find the python file from the official plugin and edit that?
@ghtmtt and @kikislater thank you, so i'd need to install the plugin from my own build rather than just find the python file from the official plugin and edit that?
yeah, that you be definitely better so that you can test locally if the changes introduced are working nice
You should also add an eventual checkbox to the UI (here https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/gui/plot_settings_widget.py#L539) and then be sure to add the widget to the correct plot type during the UI refresh (here https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/gui/plot_settings_widget.py#L539).
Finally, depending on the widget and its value, you should pass the parameter to the function https://github.com/ghtmtt/DataPlotly/blob/master/DataPlotly/gui/plot_settings_widget.py#L539
Every modifications are in the same function ? All links are the same.
Every modifications are in the same function ? All links are the same.
my fault, comment edited
Thank you Matteo !