FusionCharts - Annotation Shapes: Image scaling

Created using FusionCharts Suite XT - www.fusioncharts.com

by FusionCharts

HTML

<script src="https://cdn.fusioncharts.com/fusioncharts/latest/fusioncharts.js"></script>
<script src="https://cdn.fusioncharts.com/fusioncharts/latest/themes/fusioncharts.theme.fusion.js"></script>
<div id="chart-container">
  FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var revenueChart = new FusionCharts({
    type: 'spline',
    renderAt: 'chart-container',
    width: '400',
    height: '300',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Total footfall in Bakersfield Central",
        "subCaption": "Last week",
        "yAxisName": "No. of Visitors",
        "theme": "fusion"
      },
      "annotations": {
        "origw": "400",
        "origh": "300",
        "autoscale": "1",
        "groups": [{
          "items": [{
            "id": "zone",
            "type": "rectangle",
            "x": "$xaxis.label.6.x",
            "y": "$canvasEndY",
            "tox": "$xaxis.label.0.x",
            "toy": "$canvasStartY",
            "color": "#6baa01",
            "alpha": "20",
          }, {
            "id": "label",
            "type": "text",
            "text": "Weekend",
            "fillcolor": "#666666",
            "fontSize": "12",
            "bold": "1",
            "x": "$xaxis.label.7.x + 350",
            "y": "$canvasEndY - 20"
          }]

        }]
      },
      "data": [{
        "label": "Mon",
        "value": "15123"
      }, {
        "label": "Tue",
        "value": "14233"
      }, {
        "label": "Wed",
        "value": "25507"
      }, {
        "vline": "true",
        "lineposition": "0",
        "color": "#6baa01",
        "labelHAlign": "left",
        "label": "National holiday"
      }, {
        "label": "Thu",
        "value": "9110"
      }, {
        "label": "Fri",
        "value": "15529"
      }, {
        "label": "Sat",
        "value": "20803"
      }, {
        "label": "Sun",
        "value": "19202"
      }]
    },
    events: {
      'annotationRollOver': function(evtObj, argObj) {
        var annotations = evtObj && evtObj.sender.annotations,
          dispLabel = "";
        dispLabel = evtObj.sender.options.dataSource.data[6].label + ": " + evtObj.sender.options.dataSource.data[6].value + "{br}" +...