$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1136246400000,7.21779],[1136332800000,7.21779],[1136419200000,7.21779],[1136505600000,7.2926],[1136592000000,7.29595],[1136678400000,7.29595],[1136764800000,7.29595],[1136851200000,7.29595],[1136937600000,7.31441],[1137024000000,7.30673],[1137110400000,7.32825],[1137196800000,7.30434],[1137283200000,7.30434],[1137369600000,7.30434],[1137456000000,7.30434],[1137542400000,7.2999],[1137628800000,7.31255],[1137715200000,7.29921],[1137801600000,7.29988],[1137888000000,7.29988],[1137974400000,7.29988],[1138060800000,7.35979],[1138147200000,7.35565],[1138233600000,7.36741],[1138320000000,7.34455],[1138406400000,7.31741],[1138492800000,7.31741],[1138579200000,7.31741],[1138665600000,7.29024]], 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, 7.217791],[1136246400000, 7.217791],[1136332800000, 7.217791],[1136419200000, 7.217791],[1136505600000, 7.292598],[1136592000000, 7.295948],[1136678400000, 7.295948],[1136764800000, 7.295948],[1136851200000, 7.295948],[1136937600000, 7.314410],[1137024000000, 7.306726],[1137110400000, 7.328250],[1137196800000, 7.304338],[1137283200000, 7.304338],[1137369600000, 7.304338],[1137456000000, 7.304338],[1137542400000, 7.299903],[1137628800000, 7.312545],[1137715200000, 7.299207],[1137801600000, 7.299882],[1137888000000, 7.299882],[1137974400000, 7.299882],[1138060800000, 7.359789],[1138147200000, 7.355651],[1138233600000, 7.367412],[1138320000000, 7.344546],[1138406400000, 7.317409],[1138492800000, 7.317409],[1138579200000, 7.317409],[1138665600000, 7.290240]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });