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>
<!-- The rectangle drawn to highlight the lowest footfall is created using the path annotation. -->
<div id="chart-container">FusionCharts will render here</div>

JavaScript

FusionCharts.ready(function() {
  var revenueChart = new FusionCharts({
    id: "mychart",
    type: 'msspline',
    renderAt: 'chart-container',
    width: '600',
    height: '450',
    dataFormat: 'json',
    dataSource: {
      "chart": {
        "caption": "Number of visitors last week",
        "subCaption": "Bakersfield Central vs Los Angeles Topanga",
        "xAxisName": "Day",
        "yAxisName": "No. of visitors",
        "yAxisNamePadding": "100",
        "showYAxisValues": "0",
        "theme": "fusion",
        "showValues": "0",
        "showTooltip": "0"
      },
      "categories": [{
        "category": [{
          "label": "Mon"
        }, {
          "label": "Tue"
        }, {
          "label": "Wed"
        }, {
          "vline": "true",
          "lineposition": "0",
          "color": "#6baa01",
          "labelHAlign": "right",
          "labelPosition": "0",
          "label": "National holiday"
        }, {
          "label": "Thu"
        }, {
          "label": "Fri"
        }, {
          "label": "Sat"
        }, {
          "label": "Sun"
        }]
      }],

      //Using Annotations
      "annotations": {
        "origw": "600",
        "origh": "450",
        "autoscale": "1",
        "groups": [{
          "id": "ds1tips",
          "items": [{
            "id": "indicator-line",
            "type": "line",
            "dashed": "1"
          }, {
            "id": "tip1_1",
            "type": "rectangle",
            "fillcolor": "#6baa01",
            "x": "$dataset.0.set.0.x + 5",
            "y": "$dataset.0.set.0.y - 30",
            "tox": "$dataset.0.set.0.x + 80",
            "toy": "$dataset.0.set.0.y - 10",
            "visible": "0"
          }]
        }, {
          // Drawing custom yaxisline using Annotation
          "id": "yaxisline",
          "items": [{
            "id": "line",
            "type": "line",
            "color": "#f8bd19",
            "x": "$canvasstartx - 5",
            "y":...