$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1509494400000,37.7327],[1509580800000,37.767],[1509667200000,37.8169],[1509753600000,37.838],[1509840000000,37.838],[1509926400000,37.838],[1510012800000,37.6209],[1510099200000,37.4586],[1510185600000,37.34],[1510272000000,37.2763],[1510358400000,37.2157],[1510444800000,37.2157],[1510531200000,37.2157],[1510617600000,37.1776],[1510704000000,37.2652],[1510790400000,37.4177],[1510876800000,37.312],[1510963200000,37.3886],[1511049600000,37.3886],[1511136000000,37.3886],[1511222400000,37.3574],[1511308800000,37.3173],[1511395200000,37.5956],[1511481600000,37.8974],[1511568000000,37.971],[1511654400000,37.971],[1511740800000,37.971],[1511827200000,38.1065],[1511913600000,38.0896],[1512000000000,38.2647]], 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: [[1509494400000, 37.732695],[1509494400000, 37.732695],[1509580800000, 37.766956],[1509667200000, 37.816949],[1509753600000, 37.838010],[1509840000000, 37.838010],[1509926400000, 37.838010],[1510012800000, 37.620915],[1510099200000, 37.458552],[1510185600000, 37.340026],[1510272000000, 37.276344],[1510358400000, 37.215680],[1510444800000, 37.215680],[1510531200000, 37.215680],[1510617600000, 37.177588],[1510704000000, 37.265193],[1510790400000, 37.417691],[1510876800000, 37.311998],[1510963200000, 37.388641],[1511049600000, 37.388641],[1511136000000, 37.388641],[1511222400000, 37.357379],[1511308800000, 37.317283],[1511395200000, 37.595637],[1511481600000, 37.897386],[1511568000000, 37.971041],[1511654400000, 37.971041],[1511740800000, 37.971041],[1511827200000, 38.106537],[1511913600000, 38.089592],[1512000000000, 38.264712]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });