$(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: 'Курс SEK, грн'}, 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: 'Курс SEK', data: [[1538352000000,3.17444],[1538438400000,3.16976],[1538524800000,3.14399],[1538611200000,3.15083],[1538697600000,3.1156],[1538784000000,3.09412],[1538870400000,3.09412],[1538956800000,3.09412],[1539043200000,3.0862],[1539129600000,3.07445],[1539216000000,3.07284],[1539302400000,3.11103],[1539388800000,3.12029],[1539475200000,3.12029],[1539561600000,3.12029],[1539648000000,3.12029],[1539734400000,3.13697],[1539820800000,3.12058],[1539907200000,3.12167],[1539993600000,3.12746],[1540080000000,3.12746],[1540166400000,3.12746],[1540252800000,3.12415],[1540339200000,3.11853],[1540425600000,3.10183],[1540512000000,3.11247],[1540598400000,3.0827],[1540684800000,3.0827],[1540771200000,3.0827],[1540857600000,3.08895],[1540944000000,3.07376]], 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, 3.174437],[1538352000000, 3.174437],[1538438400000, 3.169761],[1538524800000, 3.143986],[1538611200000, 3.150826],[1538697600000, 3.115603],[1538784000000, 3.094122],[1538870400000, 3.094122],[1538956800000, 3.094122],[1539043200000, 3.086195],[1539129600000, 3.074453],[1539216000000, 3.072837],[1539302400000, 3.111033],[1539388800000, 3.120294],[1539475200000, 3.120294],[1539561600000, 3.120294],[1539648000000, 3.120294],[1539734400000, 3.136966],[1539820800000, 3.120582],[1539907200000, 3.121665],[1539993600000, 3.127456],[1540080000000, 3.127456],[1540166400000, 3.127456],[1540252800000, 3.124152],[1540339200000, 3.118534],[1540425600000, 3.101834],[1540512000000, 3.112470],[1540598400000, 3.082697],[1540684800000, 3.082697],[1540771200000, 3.082697],[1540857600000, 3.088951],[1540944000000, 3.073762]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });