$(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: [[1212969600000,7.56611],[1213056000000,7.65366],[1213142400000,7.53244],[1213228800000,7.52974],[1213315200000,7.48387],[1213401600000,7.44455],[1213488000000,7.44455],[1213574400000,7.44455],[1213660800000,7.44455],[1213747200000,7.513],[1213833600000,7.51937],[1213920000000,7.51215],[1214006400000,7.57038],[1214092800000,7.57038],[1214179200000,7.57038],[1214265600000,7.52722],[1214352000000,7.55001],[1214438400000,7.56505],[1214524800000,7.62781],[1214611200000,7.63605],[1214697600000,7.63605],[1214784000000,7.63605]], 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: [[1212969600000, 7.566105],[1212969600000, 7.566105],[1213056000000, 7.653662],[1213142400000, 7.532439],[1213228800000, 7.529740],[1213315200000, 7.483874],[1213401600000, 7.444554],[1213488000000, 7.444554],[1213574400000, 7.444554],[1213660800000, 7.444554],[1213747200000, 7.513000],[1213833600000, 7.519373],[1213920000000, 7.512155],[1214006400000, 7.570382],[1214092800000, 7.570382],[1214179200000, 7.570382],[1214265600000, 7.527219],[1214352000000, 7.550013],[1214438400000, 7.565047],[1214524800000, 7.627805],[1214611200000, 7.636048],[1214697600000, 7.636048],[1214784000000, 7.636048]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });