$(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: [[1041379200000,5.5329],[1041465600000,5.5329],[1041552000000,5.54143],[1041638400000,5.54143],[1041724800000,5.54143],[1041811200000,5.54143],[1041897600000,5.54143],[1041984000000,5.53343],[1042070400000,5.60296],[1042156800000,5.60083],[1042243200000,5.60083],[1042329600000,5.60083],[1042416000000,5.62536],[1042502400000,5.62536],[1042588800000,5.61341],[1042675200000,5.63368],[1042761600000,5.6806],[1042848000000,5.6806],[1042934400000,5.6806],[1043020800000,5.68114],[1043107200000,5.68114],[1043193600000,5.68114],[1043280000000,5.7158],[1043366400000,5.751],[1043452800000,5.751],[1043539200000,5.751],[1043625600000,5.751],[1043712000000,5.79686],[1043798400000,5.7638],[1043884800000,5.7958],[1043971200000,5.76806]], 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: [[1041379200000, 5.532900],[1041379200000, 5.532900],[1041465600000, 5.532900],[1041552000000, 5.541430],[1041638400000, 5.541430],[1041724800000, 5.541430],[1041811200000, 5.541430],[1041897600000, 5.541430],[1041984000000, 5.533430],[1042070400000, 5.602960],[1042156800000, 5.600830],[1042243200000, 5.600830],[1042329600000, 5.600830],[1042416000000, 5.625360],[1042502400000, 5.625360],[1042588800000, 5.613410],[1042675200000, 5.633680],[1042761600000, 5.680600],[1042848000000, 5.680600],[1042934400000, 5.680600],[1043020800000, 5.681140],[1043107200000, 5.681140],[1043193600000, 5.681140],[1043280000000, 5.715800],[1043366400000, 5.751000],[1043452800000, 5.751000],[1043539200000, 5.751000],[1043625600000, 5.751000],[1043712000000, 5.796860],[1043798400000, 5.763800],[1043884800000, 5.795800],[1043971200000, 5.768060]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });