$(document).ready(function () { chart = new Highcharts.StockChart({ chart: { renderTo: 'chart', type: 'line', animation: false, showAxes: true, height: 500 }, xAxis: { ordinal: false, type: 'datetime', showEmpty: true, gridLineWidth: 1, gridLineDashStyle: 'dot', ordinal: false }, yAxis: { title: {text: 'Курс CHF, грн'}, lineWidth: 3, gridLineWidth: 1, gridLineDashStyle: 'dash', ordinal: false }, plotOptions: { series: {connectNulls: true, shadow: false}, spline: {marker: {enabled: true}} }, tooltip: {valueDecimals: 8, xDateFormat: '%d %b %Y', shared: true}, series: [ { name: 'Курс CHF', data: [[1538352000000,28.9195],[1538438400000,28.6873],[1538524800000,28.7469],[1538611200000,28.6576],[1538697600000,28.4047],[1538784000000,28.2641],[1538870400000,28.2641],[1538956800000,28.2641],[1539043200000,28.29],[1539129600000,28.2147],[1539216000000,28.2188],[1539302400000,28.3395],[1539388800000,28.1814],[1539475200000,28.1814],[1539561600000,28.1814],[1539648000000,28.1814],[1539734400000,28.279],[1539820800000,28.1046],[1539907200000,28.1689],[1539993600000,28.3029],[1540080000000,28.3029],[1540166400000,28.3029],[1540252800000,28.1735],[1540339200000,28.2825],[1540425600000,28.2528],[1540512000000,28.3579],[1540598400000,28.2113],[1540684800000,28.2113],[1540771200000,28.2113],[1540857600000,28.1951],[1540944000000,28.1298]], tooltip: {valueSuffix: ' грн'}, type: 'area', step: true, color: '#888888', fillColor: { linearGradient: {x1: 0, y1: 0, x2: 0, y2: 1}, stops: [[0, '#CCCCCC'], [1, 'rgba(50,50,50,0)']] }, threshold: null }, { name: 'Среднее за период', data: [[1538352000000, 28.919470],[1538352000000, 28.919470],[1538438400000, 28.687255],[1538524800000, 28.746949],[1538611200000, 28.657553],[1538697600000, 28.404723],[1538784000000, 28.264138],[1538870400000, 28.264138],[1538956800000, 28.264138],[1539043200000, 28.290027],[1539129600000, 28.214679],[1539216000000, 28.218832],[1539302400000, 28.339528],[1539388800000, 28.181394],[1539475200000, 28.181394],[1539561600000, 28.181394],[1539648000000, 28.181394],[1539734400000, 28.279023],[1539820800000, 28.104583],[1539907200000, 28.168861],[1539993600000, 28.302911],[1540080000000, 28.302911],[1540166400000, 28.302911],[1540252800000, 28.173549],[1540339200000, 28.282461],[1540425600000, 28.252788],[1540512000000, 28.357938],[1540598400000, 28.211277],[1540684800000, 28.211277],[1540771200000, 28.211277],[1540857600000, 28.195094],[1540944000000, 28.129807]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });