$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1251763200000,9.9378],[1251849600000,9.92661],[1251936000000,9.93159],[1252022400000,9.93159],[1252108800000,9.94403],[1252195200000,9.94403],[1252281600000,9.94403],[1252368000000,9.9465],[1252454400000,9.95023],[1252540800000,9.95022],[1252627200000,9.95071],[1252713600000,9.95568],[1252800000000,9.95568],[1252886400000,9.95568],[1252972800000,9.95258],[1253059200000,9.96291],[1253145600000,9.96415],[1253232000000,9.96825],[1253318400000,9.96701],[1253404800000,9.96701],[1253491200000,9.96701],[1253577600000,9.96739],[1253664000000,9.96739],[1253750400000,9.96862],[1253836800000,9.96614],[1253923200000,9.96614],[1254009600000,9.96614],[1254096000000,9.96614],[1254182400000,9.96889],[1254268800000,9.97013]], 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: [[1251763200000, 9.937803],[1251763200000, 9.937803],[1251849600000, 9.926608],[1251936000000, 9.931592],[1252022400000, 9.931592],[1252108800000, 9.944030],[1252195200000, 9.944030],[1252281600000, 9.944030],[1252368000000, 9.946504],[1252454400000, 9.950230],[1252540800000, 9.950218],[1252627200000, 9.950709],[1252713600000, 9.955683],[1252800000000, 9.955683],[1252886400000, 9.955683],[1252972800000, 9.952582],[1253059200000, 9.962908],[1253145600000, 9.964148],[1253232000000, 9.968252],[1253318400000, 9.967011],[1253404800000, 9.967011],[1253491200000, 9.967011],[1253577600000, 9.967385],[1253664000000, 9.967385],[1253750400000, 9.968625],[1253836800000, 9.966144],[1253923200000, 9.966144],[1254009600000, 9.966144],[1254096000000, 9.966144],[1254182400000, 9.968886],[1254268800000, 9.970127]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });