$(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: [[1359676800000,10.8305],[1359763200000,10.9056],[1359849600000,10.9056],[1359936000000,10.9056],[1360022400000,10.8321],[1360108800000,10.8201],[1360195200000,10.8041],[1360281600000,10.8273],[1360368000000,10.6898],[1360454400000,10.6898],[1360540800000,10.6898],[1360627200000,10.7034],[1360713600000,10.741],[1360800000000,10.7746],[1360886400000,10.6523],[1360972800000,10.6507],[1361059200000,10.6507],[1361145600000,10.6507],[1361232000000,10.6723],[1361318400000,10.6699],[1361404800000,10.6866],[1361491200000,10.5396],[1361577600000,10.5396],[1361664000000,10.5396],[1361750400000,10.5396],[1361836800000,10.6339],[1361923200000,10.4524],[1362009600000,10.4684]], 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: [[1359676800000, 10.830515],[1359676800000, 10.830515],[1359763200000, 10.905649],[1359849600000, 10.905649],[1359936000000, 10.905649],[1360022400000, 10.832114],[1360108800000, 10.820124],[1360195200000, 10.804138],[1360281600000, 10.827318],[1360368000000, 10.689838],[1360454400000, 10.689838],[1360540800000, 10.689838],[1360627200000, 10.703426],[1360713600000, 10.740993],[1360800000000, 10.774564],[1360886400000, 10.652271],[1360972800000, 10.650673],[1361059200000, 10.650673],[1361145600000, 10.650673],[1361232000000, 10.672254],[1361318400000, 10.669856],[1361404800000, 10.686641],[1361491200000, 10.539570],[1361577600000, 10.539570],[1361664000000, 10.539570],[1361750400000, 10.539570],[1361836800000, 10.633887],[1361923200000, 10.452446],[1362009600000, 10.468432]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });