You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
With Python API, I have been setting data.marker.color using an "rgba" string. When saving the plot as an SVG image using plotly.offline.plot(figure,image='svg',), the "rgba" is translated into "rgb" and "fill-opacity" as long as the figure is a bar chart or stacked bar chart, which is the preferred behavior.
However, when using a Pie chart, the SVG style "fill" for each Slice attempts to use "rgba" (i.e. it is not translated to "rgb" and "fill-opacity"). This is not an issue when viewing the SVG in the browser. However, Inkscape, GIMP (and I assume Illustrator) cannot interpret "rgba" values, and so opening the Pie chart SVG gives only black slices (i.e. the fill for each slice is "Unset").
This is not a huge issue, as users can manually set alpha using data.opacity and pass an "rgb" string to data.marker.color, producing an SVG that behaves correctly in Inkscape.
I just want to highlight the fact that the behavior is different for Bar Charts and Pie Charts.
This may be related to user's issue in plotly.js #707.
The text was updated successfully, but these errors were encountered:
With Python API, I have been setting data.marker.color using an "rgba" string. When saving the plot as an SVG image using plotly.offline.plot(figure,image='svg',), the "rgba" is translated into "rgb" and "fill-opacity" as long as the figure is a bar chart or stacked bar chart, which is the preferred behavior.
However, when using a Pie chart, the SVG style "fill" for each Slice attempts to use "rgba" (i.e. it is not translated to "rgb" and "fill-opacity"). This is not an issue when viewing the SVG in the browser. However, Inkscape, GIMP (and I assume Illustrator) cannot interpret "rgba" values, and so opening the Pie chart SVG gives only black slices (i.e. the fill for each slice is "Unset").
This is not a huge issue, as users can manually set alpha using data.opacity and pass an "rgb" string to data.marker.color, producing an SVG that behaves correctly in Inkscape.
I just want to highlight the fact that the behavior is different for Bar Charts and Pie Charts.
This may be related to user's issue in plotly.js #707.
The text was updated successfully, but these errors were encountered: