$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[962409600000,5.1963],[962496000000,5.1963],[962582400000,5.1963],[962668800000,5.1624],[962755200000,5.15922],[962841600000,5.18651],[962928000000,5.18942],[963014400000,5.15733],[963100800000,5.15733],[963187200000,5.15733],[963273600000,5.17908],[963360000000,5.18135],[963446400000,5.16622],[963532800000,5.08464],[963619200000,5.0819],[963705600000,5.0819],[963792000000,5.0819],[963878400000,5.08618],[963964800000,5.08672],[964051200000,5.01231],[964137600000,5.01457],[964224000000,5.09244],[964310400000,5.09244],[964396800000,5.09244],[964483200000,5.07558],[964569600000,5.11791],[964656000000,5.10703],[964742400000,5.10649],[964828800000,5.04494],[964915200000,5.04494],[965001600000,5.04494]], 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: [[962409600000, 5.196300],[962409600000, 5.196300],[962496000000, 5.196300],[962582400000, 5.196300],[962668800000, 5.162400],[962755200000, 5.159220],[962841600000, 5.186510],[962928000000, 5.189420],[963014400000, 5.157330],[963100800000, 5.157330],[963187200000, 5.157330],[963273600000, 5.179080],[963360000000, 5.181350],[963446400000, 5.166220],[963532800000, 5.084640],[963619200000, 5.081900],[963705600000, 5.081900],[963792000000, 5.081900],[963878400000, 5.086180],[963964800000, 5.086720],[964051200000, 5.012310],[964137600000, 5.014570],[964224000000, 5.092440],[964310400000, 5.092440],[964396800000, 5.092440],[964483200000, 5.075580],[964569600000, 5.117910],[964656000000, 5.107030],[964742400000, 5.106490],[964828800000, 5.044940],[964915200000, 5.044940],[965001600000, 5.044940]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });