Closed Ashishvkale closed 3 months ago
HTML content will not be included in the export because it cannot be reliably rendered as canvas by JS.
This is mentioned in the docs: https://www.amcharts.com/docs/v5/concepts/common-elements/html-content/#Exporting
@martynasma Thanks for the clarification Last question : Any another way to customise the label text with multiple colors ?
Any another way to customise the label text with multiple colors ?
Yes: https://www.amcharts.com/docs/v5/concepts/formatters/text-styling/
@martynasma thanks for that link. The issue is that the point at which we need to transition the color on the label is dynamic so those formatters won't work. I have opened a pull request to add the ability for a LinearGradient to be used as the fill for a label #1648. Could you review and let me know if this is something that could possibly be merged?
Two things:
1) We can't accept main code contributions via pull requests for legal reasons.
2) In amCharts 5, gradients are set via separate setting (fillgradient
) on elements that support it. If we were to add it to Label
, we would do it that way for consistency.
We can consider adding it on our own. Please refer to https://github.com/amcharts/amcharts5/issues/1636 to track the progress as it's more suitable for this enhancement.
Below is how I'm adding the labels to the columnseries:
On exporting the chart the labels getting faded away
Any another way to make them stay while exporting as PNG ??