Hi Subhash,
There are many methods to insert images in charts. For example:
(a) You may use BaseChart.setBgImage to insert a background image for the chart.
(b) You may use PlotArea.setBackground2 to insert a background image for the plot area
(c) You may create a pattern color using an image with BaseChart.patternColor2, and paint
a rectangle (eg. as the background color of a text box, a bar, etc) using that pattern color.
(d) You may add a scatter layer with a symbol that is an image (see the "Custom Scatter
Symbols" sample code).
(e) You may use CDML to add the image as text. For example, you may add it using a
custom text box (BaseChart.addText), or add it as a text label of a data point in a layer
(Layer.addCustomDataLabel). See the "Spline Line Chart" sample for an example of how to
add an image using CDML (note that logo image at the bottom right corner of the plot
area).
Hope this can help.
Regards
Peter Kwan |