-
Notifications
You must be signed in to change notification settings - Fork 38
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
Currency symbols on d3 formats exporting to an image not available (only $) #191
Comments
Setting
|
Many thanks @empet, it's an interesting workaround that I am already testing. It would be great to have the possibility to use a The position of some symbols is different depending on the country, for example in Spain ( |
I tested this solution and for my needs is not enough, I need to stitch to the d3 format specification: This solution works if I wouldn't need to use the d3 format but I need it. |
Thanks for your interest in Kaleido. We are currently working on an overhaul that might address your issue - we hope to have news in a few weeks and will post an update then. Thanks - @gvwilson |
Hi,
I am having problems when exporting a figure to static image.
I need to be able to use the monetary capabilities of the d3 format since the same chart should show one monetary symbol or another depending on some input data, but the only currency symbol that works exporting the figure to a static image is
$
, as I understand to use a different currency symbol is needed to modify thelocales
config.Another solution is using a prefix on the axis, the two most relevant documentation links I have found would be these two, one talks about stopping using
xaxis_tickprefix
andyaxis_tickprefix
due to the symbol position problem and links to the second link, where it gives as a solution the use ofconfig
, argument not available inplotly.io.write_image
.According to what I have studied to solve my problem this would be by passing a
config
to theshow
method specifying the appropriatelocales
.The problem is that to export to an image I must use the
plotly.io.write_image
method, which does not accept anyconfig
that I would use to set the appropriate currency symbol for each occasion.The current solution I have found is using
xaxis_tickprefix
andyaxis_tickprefix
, but it has the drawback of badly positioning the currency sign and symbol with negative amounts, e.g.€ -100
instead of-€100
, for the case of a particular locale.Since I use Kaleido, it came to my mind that maybe it could be done through it, but I haven't found anything.
Any help? I'm not sure if I'm missing something or maybe it's more of a new feature.
Thank you very much.
The text was updated successfully, but these errors were encountered: