$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1425168000000,0.210838],[1425254400000,0.210838],[1425340800000,0.201622],[1425427200000,0.186327],[1425513600000,0.177252],[1425600000000,0.171092],[1425686400000,0.16892],[1425772800000,0.16892],[1425859200000,0.16892],[1425945600000,0.16892],[1426032000000,0.157711],[1426118400000,0.154313],[1426204800000,0.15432],[1426291200000,0.155299],[1426377600000,0.155299],[1426464000000,0.155299],[1426550400000,0.156385],[1426636800000,0.159134],[1426723200000,0.167941],[1426809600000,0.168594],[1426896000000,0.167817],[1426982400000,0.167817],[1427068800000,0.167817],[1427155200000,0.167328],[1427241600000,0.170009],[1427328000000,0.174071],[1427414400000,0.174429],[1427500800000,0.172093],[1427587200000,0.172093],[1427673600000,0.172093],[1427760000000,0.171577]], 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: [[1425168000000, 0.210838],[1425168000000, 0.210838],[1425254400000, 0.210838],[1425340800000, 0.201622],[1425427200000, 0.186327],[1425513600000, 0.177252],[1425600000000, 0.171092],[1425686400000, 0.168920],[1425772800000, 0.168920],[1425859200000, 0.168920],[1425945600000, 0.168920],[1426032000000, 0.157711],[1426118400000, 0.154313],[1426204800000, 0.154320],[1426291200000, 0.155299],[1426377600000, 0.155299],[1426464000000, 0.155299],[1426550400000, 0.156385],[1426636800000, 0.159134],[1426723200000, 0.167941],[1426809600000, 0.168594],[1426896000000, 0.167817],[1426982400000, 0.167817],[1427068800000, 0.167817],[1427155200000, 0.167328],[1427241600000, 0.170009],[1427328000000, 0.174071],[1427414400000, 0.174429],[1427500800000, 0.172093],[1427587200000, 0.172093],[1427673600000, 0.172093],[1427760000000, 0.171577]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });