$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1414800000000,0.29844],[1414886400000,0.29844],[1414972800000,0.29844],[1415059200000,0.30863],[1415145600000,0.3087],[1415232000000,0.32164],[1415318400000,0.31432],[1415404800000,0.32025],[1415491200000,0.32025],[1415577600000,0.32025],[1415664000000,0.30921],[1415750400000,0.34366],[1415836800000,0.34274],[1415923200000,0.33579],[1416009600000,0.33416],[1416096000000,0.33416],[1416182400000,0.33416],[1416268800000,null],[1416355200000,0.3224],[1416441600000,0.32355],[1416528000000,0.32206],[1416614400000,0.32323],[1416700800000,0.32323],[1416787200000,0.32323],[1416873600000,0.32889],[1416960000000,0.33511],[1417046400000,0.33291],[1417132800000,0.32239],[1417219200000,0.31407],[1417305600000,0.31407]], 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: [[1414800000000, 0.298440],[1414800000000, 0.298440],[1414886400000, 0.298440],[1414972800000, 0.298440],[1415059200000, 0.308630],[1415145600000, 0.308700],[1415232000000, 0.321640],[1415318400000, 0.314320],[1415404800000, 0.320250],[1415491200000, 0.320250],[1415577600000, 0.320250],[1415664000000, 0.309210],[1415750400000, 0.343660],[1415836800000, 0.342740],[1415923200000, 0.335790],[1416009600000, 0.334160],[1416096000000, 0.334160],[1416182400000, 0.334160],[1416355200000, 0.322400],[1416441600000, 0.323550],[1416528000000, 0.322060],[1416614400000, 0.323230],[1416700800000, 0.323230],[1416787200000, 0.323230],[1416873600000, 0.328890],[1416960000000, 0.335110],[1417046400000, 0.332910],[1417132800000, 0.322390],[1417219200000, 0.314070],[1417305600000, 0.314070]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });