$(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: [[1046476800000,5.75166],[1046563200000,5.75166],[1046649600000,5.75166],[1046736000000,5.76126],[1046822400000,5.84981],[1046908800000,5.84981],[1046995200000,5.88875],[1047081600000,5.88875],[1047168000000,5.88875],[1047254400000,5.88875],[1047340800000,5.91063],[1047427200000,5.91063],[1047513600000,5.88289],[1047600000000,5.74792],[1047686400000,5.74792],[1047772800000,5.74792],[1047859200000,5.76179],[1047945600000,5.76179],[1048032000000,5.63857],[1048118400000,5.63857],[1048204800000,5.63963],[1048291200000,5.63963],[1048377600000,5.63963],[1048464000000,5.67271],[1048550400000,5.70311],[1048636800000,5.69031],[1048723200000,5.72018],[1048809600000,5.72018],[1048896000000,5.72018],[1048982400000,5.72018],[1049068800000,5.72392]], 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: [[1046476800000, 5.751660],[1046476800000, 5.751660],[1046563200000, 5.751660],[1046649600000, 5.751660],[1046736000000, 5.761260],[1046822400000, 5.849810],[1046908800000, 5.849810],[1046995200000, 5.888750],[1047081600000, 5.888750],[1047168000000, 5.888750],[1047254400000, 5.888750],[1047340800000, 5.910630],[1047427200000, 5.910630],[1047513600000, 5.882890],[1047600000000, 5.747920],[1047686400000, 5.747920],[1047772800000, 5.747920],[1047859200000, 5.761790],[1047945600000, 5.761790],[1048032000000, 5.638570],[1048118400000, 5.638570],[1048204800000, 5.639630],[1048291200000, 5.639630],[1048377600000, 5.639630],[1048464000000, 5.672710],[1048550400000, 5.703110],[1048636800000, 5.690310],[1048723200000, 5.720180],[1048809600000, 5.720180],[1048896000000, 5.720180],[1048982400000, 5.720180],[1049068800000, 5.723920]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });