$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1485907200000,27.0795],[1485993600000,26.9986],[1486080000000,26.987],[1486166400000,27.078],[1486252800000,27.078],[1486339200000,27.078],[1486425600000,27.2627],[1486512000000,27.0319],[1486598400000,26.9125],[1486684800000,27.0251],[1486771200000,27.2068],[1486857600000,27.2068],[1486944000000,27.2068],[1487030400000,27.1651],[1487116800000,27.2305],[1487203200000,26.9936],[1487289600000,26.9887],[1487376000000,27.0261],[1487462400000,27.0261],[1487548800000,27.0261],[1487635200000,27.0253],[1487721600000,27.0425],[1487808000000,26.9729],[1487894400000,26.9063],[1487980800000,26.9766],[1488067200000,26.9766],[1488153600000,26.9766],[1488240000000,27.0537]], 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: [[1485907200000, 27.079535],[1485907200000, 27.079535],[1485993600000, 26.998586],[1486080000000, 26.986979],[1486166400000, 27.077975],[1486252800000, 27.077975],[1486339200000, 27.077975],[1486425600000, 27.262733],[1486512000000, 27.031894],[1486598400000, 26.912499],[1486684800000, 27.025143],[1486771200000, 27.206833],[1486857600000, 27.206833],[1486944000000, 27.206833],[1487030400000, 27.165110],[1487116800000, 27.230462],[1487203200000, 26.993603],[1487289600000, 26.988684],[1487376000000, 27.026138],[1487462400000, 27.026138],[1487548800000, 27.026138],[1487635200000, 27.025299],[1487721600000, 27.042536],[1487808000000, 26.972870],[1487894400000, 26.906286],[1487980800000, 26.976569],[1488067200000, 26.976569],[1488153600000, 26.976569],[1488240000000, 27.053672]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });