Add own watermark to flex chart
-
19-09-2019 - |
Question
does someone know how to add a watermark to a charting component in flex? Maybe to a Line Chart or just simple to a canvas.
Thanks in advance
Sebastian
Solution
Try making the background of the chart transparent (backgroundAlpha: 0), then wrap them both in a canvas, and put your watermark behind the chart
<mx:Canvas><mx:Image/><mx:Chart/></mx:Canvas>
OTHER TIPS
You can manipulate backgroundElements of your chart, for example
<fx:Declarations>
<fx:Array id="backgroundContents">
<mx:Image source="../assets/texture.jpg" />
<mx:GridLines id="backgroundGrid" />
<mx:GridLines id="anotherLayer" />
<s:Label />
</fx:Array>
</fx:Declarations>
<PlotChart id="plot2" showDataTips="true" dataProvider="{dataProvider}" backgroundElements="{backgroundContents}"></PlotChart>
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow