$(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: [[970358400000,4.7679],[970444800000,4.7679],[970531200000,4.78829],[970617600000,4.76707],[970704000000,4.74912],[970790400000,4.77958],[970876800000,4.73443],[970963200000,4.73443],[971049600000,4.73443],[971136000000,4.73008],[971222400000,4.74422],[971308800000,4.74368],[971395200000,4.70451],[971481600000,4.69222],[971568000000,4.69222],[971654400000,4.69222],[971740800000,4.62913],[971827200000,4.62064],[971913600000,4.63615],[972000000000,4.57382],[972086400000,4.59586],[972172800000,4.59586],[972259200000,4.59586],[972345600000,4.55483],[972432000000,4.55972],[972518400000,4.55972],[972604800000,4.48669],[972691200000,4.52584],[972777600000,4.52584],[972864000000,4.52584],[972950400000,4.61158]], 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: [[970358400000, 4.767900],[970358400000, 4.767900],[970444800000, 4.767900],[970531200000, 4.788290],[970617600000, 4.767070],[970704000000, 4.749120],[970790400000, 4.779580],[970876800000, 4.734430],[970963200000, 4.734430],[971049600000, 4.734430],[971136000000, 4.730080],[971222400000, 4.744220],[971308800000, 4.743680],[971395200000, 4.704510],[971481600000, 4.692220],[971568000000, 4.692220],[971654400000, 4.692220],[971740800000, 4.629130],[971827200000, 4.620640],[971913600000, 4.636150],[972000000000, 4.573820],[972086400000, 4.595860],[972172800000, 4.595860],[972259200000, 4.595860],[972345600000, 4.554830],[972432000000, 4.559720],[972518400000, 4.559720],[972604800000, 4.486690],[972691200000, 4.525840],[972777600000, 4.525840],[972864000000, 4.525840],[972950400000, 4.611580]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });