Zoom

by Black Label

HTML

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/modules/series-label.js"></script>
<script src="https://code.highcharts.com/modules/exporting.js"></script>
<script src="https://code.highcharts.com/modules/export-data.js"></script>
<script src="https://code.highcharts.com/modules/accessibility.js"></script>

<figure class="highcharts-figure">
    <div id="container"></div>
</figure>

CSS

.highcharts-figure,
.highcharts-data-table table {
    min-width: 360px;
    max-width: 800px;
    margin: 1em auto;
}

.highcharts-data-table table {
    font-family: Verdana, sans-serif;
    border-collapse: collapse;
    border: 1px solid #ebebeb;
    margin: 10px auto;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.highcharts-data-table caption {
    padding: 1em 0;
    font-size: 1.2em;
    color: #555;
}

.highcharts-data-table th {
    font-weight: 600;
    padding: 0.5em;
}

.highcharts-data-table td,
.highcharts-data-table th,
.highcharts-data-table caption {
    padding: 0.5em;
}

.highcharts-data-table thead tr,
.highcharts-data-table tbody tr:nth-child(even) {
    background: #f8f8f8;
}

.highcharts-data-table tr:hover {
    background: #f1f7ff;
}

.highcharts-description {
    margin: 0.3rem 10px;
}

JavaScript

Highcharts.chart('container', {

    xAxis: [
        {
            type: 'datetime'
        },
{
  type: 'datetime',
  linkedTo: 0,
  tickWidth: 0,
  lineWidth: 0,
    tickPositioner: function () {
    const axis = this;
    const range = axis.max - axis.min;
    const center = axis.min + range / 2;

    return [center];
  },
  labels: {
    formatter: function () {
      const value = Highcharts.dateFormat('%d %m %Y', this.value);
      return value.toLowerCase();
    }
  },
  dateTimeLabelFormats: {
    day: '%e %b'
  }
}

    ],

    series: [{
        name: 'Zoom',
        data: [
        [
          1749578425000,
          null
        ],
        [
          1749578463834,
          -0.0095769995823502541
        ],
        [
          1749581012477,
          -0.0071829999797046185
        ],
        [
          1749583560056,
          -0.021547999233007431
        ],
        [
          1749586124415,
          -0.019153999164700508
        ],
        [
          1749588673505,
          0.0287299994379282
        ],
        [
          1749591222519,
          0.0047880001366138458
        ],
        [
          1749593771763,
          0
        ],
        [
          1749596338529,
          0
        ],
        [
          1749598887480,
          0
        ],
        [
          1749601434793,
          0
        ],
        [
          1749603996397,
          -0.0047880001366138458
        ],
        [
          1749606545165,
          -0.0095769995823502541
        ],
        [
          1749609094331,
          -0.0047880001366138458
        ],
        [
          1749611646148,
          0
        ],
        [
          1749614191132,
          0.0047880001366138458
        ],
        [
          1749616742614,
          0.0023940000683069229
        ],
        [
          1749619305944,
          0.0023940000683069229
        ],
       ...