$(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: [[983404800000,0.18968],[983491200000,0.18968],[983577600000,0.18947],[983664000000,0.18947],[983750400000,0.18947],[983836800000,0.18937],[983923200000,0.1894],[984009600000,0.18947],[984096000000,0.18947],[984182400000,0.18947],[984268800000,0.18947],[984355200000,0.18947],[984441600000,0.18905],[984528000000,0.18918],[984614400000,0.18908],[984700800000,0.18908],[984787200000,0.18906],[984873600000,0.18906],[984960000000,0.18906],[985046400000,0.18913],[985132800000,0.18933],[985219200000,0.18912],[985305600000,0.18839],[985392000000,0.18842],[985478400000,0.18842],[985564800000,0.18842],[985651200000,0.1884],[985737600000,0.18863],[985824000000,0.18841],[985910400000,0.18863],[985996800000,0.18856]], 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: [[983404800000, 0.189680],[983404800000, 0.189680],[983491200000, 0.189680],[983577600000, 0.189470],[983664000000, 0.189470],[983750400000, 0.189470],[983836800000, 0.189370],[983923200000, 0.189400],[984009600000, 0.189470],[984096000000, 0.189470],[984182400000, 0.189470],[984268800000, 0.189470],[984355200000, 0.189470],[984441600000, 0.189050],[984528000000, 0.189180],[984614400000, 0.189080],[984700800000, 0.189080],[984787200000, 0.189060],[984873600000, 0.189060],[984960000000, 0.189060],[985046400000, 0.189130],[985132800000, 0.189330],[985219200000, 0.189120],[985305600000, 0.188390],[985392000000, 0.188420],[985478400000, 0.188420],[985564800000, 0.188420],[985651200000, 0.188400],[985737600000, 0.188630],[985824000000, 0.188410],[985910400000, 0.188630],[985996800000, 0.188560]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });