$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1212969600000,9.49204],[1213056000000,9.59827],[1213142400000,9.49447],[1213228800000,9.51385],[1213315200000,9.45889],[1213401600000,9.44321],[1213488000000,9.44321],[1213574400000,9.44321],[1213660800000,9.44321],[1213747200000,9.45745],[1213833600000,9.4786],[1213920000000,9.5538],[1214006400000,9.58701],[1214092800000,9.58701],[1214179200000,9.58701],[1214265600000,9.50947],[1214352000000,9.5455],[1214438400000,9.56753],[1214524800000,9.63167],[1214611200000,9.63722],[1214697600000,9.63722],[1214784000000,9.63722]], 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, 9.492040],[1212969600000, 9.492040],[1213056000000, 9.598271],[1213142400000, 9.494471],[1213228800000, 9.513854],[1213315200000, 9.458891],[1213401600000, 9.443210],[1213488000000, 9.443210],[1213574400000, 9.443210],[1213660800000, 9.443210],[1213747200000, 9.457452],[1213833600000, 9.478599],[1213920000000, 9.553803],[1214006400000, 9.587009],[1214092800000, 9.587009],[1214179200000, 9.587009],[1214265600000, 9.509468],[1214352000000, 9.545500],[1214438400000, 9.567531],[1214524800000, 9.631674],[1214611200000, 9.637216],[1214697600000, 9.637216],[1214784000000, 9.637216]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });