-
-
Notifications
You must be signed in to change notification settings - Fork 639
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: Add possibility to set x-axis for scatter as value axis in combined chart #415
Comments
Could you update the second image. It looks the same as the first. |
Also, is it possible in Excel to combine a radar chart and a scatter chart to get a polar chart? |
Thanks for quick response! For me the x-axis don't match with the radar axis on the first image but it do match on the second image. /Jesper |
This figure maybe shows the change between the figures better. The first is from my python script and the second is the one i have changed in excel. |
Thanks for the updates. I'll look into it in more detail. It is possible that this is a bug. I am aware of a similar issue in the Perl version of the module: jmcnamara/excel-writer-xlsx#157 I'll look into it and let you know. |
I’m not really familiar with the code but I have tried to check in the ”chart.py” and ”scatter_chart.py”. I believe the problem could be in “_write_plot_area” in chart.py. The reason I believe this is that from what I can see in the code it is here the charts are combined and the function seams to be unable to define a value x-axis. I think this could be solved by adding an elseif statement in the rows 1532 to 1535 that checks if the plot is a scatter plot and if it is it writes a values axis instead of a categories axis (I have placed this statement after the write date statement since that should be able to override the behavior I want). I am not sure this will solve the problem, since I don’t know my way around this code that much;) if self.date_category:
self._write_date_axis(args)
elif self.get(‘type’) == 'scatter':
self._write_cat_val_axis(args)
else:
self._write_cat_axis(args) Hopefully this has helped ;) |
Are there any new for this problem? I faced it today while trying to build a Polar Chart this way. The x-axis of the scatter plot seems to be more right than it should. |
@42tker There isn't any update on this from my side. |
@jmcnamara Thank you for the answer. |
Hi!
I have tried to combine a radar chart with a scatter chart to create a polar chart. When I did this I didn't manage to set the x-axis on the scatter plot to a values axis which means that I coudn't set the max and min values on the chart.
When I open the output from the script below in excel I can change the chart type to another scatter chart and a get a values x-axis. The first figure shown below is the output from python and the second is when I have changed the chart type and and made the line straight without markers.
/Jesper
The text was updated successfully, but these errors were encountered: