Image

Places a freely positionable image on the canvas.

Attributes

  • layer
    • layer in which the image is to be inserted
    • Type: <javadoc ACJavaDoc>com.arcadiacharts.themes.Layer</javadoc>; available values: BACKGROUND, CHART, LEGEND, MARKER, OVERLAY, POPUP, SCROLLBAR, ZOOMAREA. default: BACKGROUND
  • zIndex
    • zIndex of the image within the given layer
    • Type: integer; default: 0
  • imageUrl
    • Address of the image file. Needs to be defined if you want to insert an image.
    • Typ: Image Variable
  • paddingTop
    • Padding between image and the top edge of the canvas.
    • Typ: integer; default: 0
  • paddingLeft
    • Padding between the image and the left edge of the canvas.
    • Typ: integer; default: 0
  • position
    • When you set “position:auto” the linked image is centered within the designated area.
    • possible values: auto
  • x
    • Sets the X-position of the image on the canvas.
    • Type: integer; default: $x
  • y
    • Sets the Y-position of the image on the canvas.
    • Type: integer; default: $y
  • height
    • Height of the area that will be filled with an image. Can be used to crop images.
    • Type: integer; default: chart height
  • width
    • Width of the area that will be filled with an image. Can be used to crop images.
    • Type: integer; default: chart width

Example

<chartOptions>
	<image>
		<imageUrl>$WEATHER_ICON</imageUrl>
		<x>200</x>
		<y>50</y>
		<layer>OVERLAY</layer>
		<zIndex>7000</zIndex>
	</image>
</chartOptions>