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
Some information regarding feasibility with the current state of the vue-data-ui library:
There is only one slot available for the download png action. I'm not sure yet if I'm going to add another slot just for copy, knowing that the same can be used in this case, but would force us to decide if we prefer either to copy or to download. I think for npmx it would make sense to have the copy png action instead of the download. I would however keep the svg download action as is.
To replace the 'download png' action by a 'copy png' action:
In the configuration object of the charts, userOptions.callbacks.img will have to be modified to copy instead of downloading
In the #optionImg slot of the charts, used to customise the related icon, a similar approach as the one used for the #optionAltCopy slot could be used to signal copy success or error.
The translation provided in the config under userOptions.buttonTitles.img should be updated (by the way, fix: typo in chart config attribute #2328 solved a typo in FacetBarChart)
These changes should be reflected in all chart components with this action:
TrendsChart.vue
VersionDistribution.vue
FacetBarChart.vue
PS. If a hack exists to have both, feel free to propose ;)
Activity
graphieros commentedon Mar 30, 2026
@gameroman
Some information regarding feasibility with the current state of the vue-data-ui library:
There is only one slot available for the download png action. I'm not sure yet if I'm going to add another slot just for copy, knowing that the same can be used in this case, but would force us to decide if we prefer either to copy or to download. I think for npmx it would make sense to have the copy png action instead of the download. I would however keep the svg download action as is.
To replace the 'download png' action by a 'copy png' action:
In the configuration object of the charts,
userOptions.callbacks.imgwill have to be modified to copy instead of downloadingIn the
#optionImgslot of the charts, used to customise the related icon, a similar approach as the one used for the#optionAltCopyslot could be used to signal copy success or error.The translation provided in the config under
userOptions.buttonTitles.imgshould be updated (by the way, fix: typo in chart config attribute #2328 solved a typo in FacetBarChart)These changes should be reflected in all chart components with this action:
PS. If a hack exists to have both, feel free to propose ;)