$(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: 'Курс SKK, грн'}, 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: 'Курс SKK', data: [[1136246400000,0.157273],[1136332800000,0.157273],[1136419200000,0.157273],[1136505600000,0.162158],[1136592000000,0.162385],[1136678400000,0.162385],[1136764800000,0.162385],[1136851200000,0.162385],[1136937600000,0.162614],[1137024000000,0.163308],[1137110400000,0.163536],[1137196800000,0.162039],[1137283200000,0.162039],[1137369600000,0.162039],[1137456000000,0.163208],[1137542400000,0.162445],[1137628800000,0.162762],[1137715200000,0.16228],[1137801600000,0.162624],[1137888000000,0.162624],[1137974400000,0.162624],[1138060800000,0.165436],[1138147200000,0.165749],[1138233600000,0.166827],[1138320000000,0.165816],[1138406400000,0.164531],[1138492800000,0.164531],[1138579200000,0.164531],[1138665600000,0.163314]], 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: [[1136246400000, 0.157273],[1136246400000, 0.157273],[1136332800000, 0.157273],[1136419200000, 0.157273],[1136505600000, 0.162158],[1136592000000, 0.162385],[1136678400000, 0.162385],[1136764800000, 0.162385],[1136851200000, 0.162385],[1136937600000, 0.162614],[1137024000000, 0.163308],[1137110400000, 0.163536],[1137196800000, 0.162039],[1137283200000, 0.162039],[1137369600000, 0.162039],[1137456000000, 0.163208],[1137542400000, 0.162445],[1137628800000, 0.162762],[1137715200000, 0.162280],[1137801600000, 0.162624],[1137888000000, 0.162624],[1137974400000, 0.162624],[1138060800000, 0.165436],[1138147200000, 0.165749],[1138233600000, 0.166827],[1138320000000, 0.165816],[1138406400000, 0.164531],[1138492800000, 0.164531],[1138579200000, 0.164531],[1138665600000, 0.163314]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });