$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1136246400000,8.69325],[1136332800000,8.69325],[1136419200000,8.69325],[1136505600000,8.86243],[1136592000000,8.86609],[1136678400000,8.86609],[1136764800000,8.86609],[1136851200000,8.86609],[1136937600000,8.91602],[1137024000000,8.86758],[1137110400000,8.93524],[1137196800000,8.92236],[1137283200000,8.92236],[1137369600000,8.92236],[1137456000000,8.92342],[1137542400000,8.89746],[1137628800000,8.92064],[1137715200000,8.86365],[1137801600000,8.8936],[1137888000000,8.8936],[1137974400000,8.8936],[1138060800000,9.01408],[1138147200000,9.01041],[1138233600000,9.04102],[1138320000000,9.02212],[1138406400000,8.97876],[1138492800000,8.97876],[1138579200000,8.97876],[1138665600000,8.92476]], 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, 8.693251],[1136246400000, 8.693251],[1136332800000, 8.693251],[1136419200000, 8.693251],[1136505600000, 8.862427],[1136592000000, 8.866093],[1136678400000, 8.866093],[1136764800000, 8.866093],[1136851200000, 8.866093],[1136937600000, 8.916025],[1137024000000, 8.867577],[1137110400000, 8.935240],[1137196800000, 8.922358],[1137283200000, 8.922358],[1137369600000, 8.922358],[1137456000000, 8.923423],[1137542400000, 8.897461],[1137628800000, 8.920637],[1137715200000, 8.863655],[1137801600000, 8.893601],[1137888000000, 8.893601],[1137974400000, 8.893601],[1138060800000, 9.014081],[1138147200000, 9.010410],[1138233600000, 9.041022],[1138320000000, 9.022117],[1138406400000, 8.978761],[1138492800000, 8.978761],[1138579200000, 8.978761],[1138665600000, 8.924757]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });