$(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: [[1446336000000,0.177887],[1446422400000,0.177887],[1446508800000,0.17954],[1446595200000,0.17907],[1446681600000,0.178829],[1446768000000,0.176527],[1446854400000,0.174734],[1446940800000,0.174734],[1447027200000,0.174734],[1447113600000,0.17422],[1447200000000,0.173552],[1447286400000,0.173783],[1447372800000,0.174674],[1447459200000,0.176487],[1447545600000,0.176487],[1447632000000,0.176487],[1447718400000,0.17691],[1447804800000,0.180453],[1447891200000,0.181673],[1447977600000,0.181025],[1448064000000,0.18206],[1448150400000,0.18206],[1448236800000,0.18206],[1448323200000,0.181571],[1448409600000,0.181077],[1448496000000,0.179165],[1448582400000,0.178012],[1448668800000,0.180003],[1448755200000,0.180003],[1448841600000,0.180003]], 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: [[1446336000000, 0.177887],[1446336000000, 0.177887],[1446422400000, 0.177887],[1446508800000, 0.179540],[1446595200000, 0.179070],[1446681600000, 0.178829],[1446768000000, 0.176527],[1446854400000, 0.174734],[1446940800000, 0.174734],[1447027200000, 0.174734],[1447113600000, 0.174220],[1447200000000, 0.173552],[1447286400000, 0.173783],[1447372800000, 0.174674],[1447459200000, 0.176487],[1447545600000, 0.176487],[1447632000000, 0.176487],[1447718400000, 0.176910],[1447804800000, 0.180453],[1447891200000, 0.181673],[1447977600000, 0.181025],[1448064000000, 0.182060],[1448150400000, 0.182060],[1448236800000, 0.182060],[1448323200000, 0.181571],[1448409600000, 0.181077],[1448496000000, 0.179165],[1448582400000, 0.178012],[1448668800000, 0.180003],[1448755200000, 0.180003],[1448841600000, 0.180003]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });