$(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: [[1185926400000,10.2701],[1186012800000,10.228],[1186099200000,10.2493],[1186185600000,10.271],[1186272000000,10.271],[1186358400000,10.271],[1186444800000,10.2596],[1186531200000,10.2358],[1186617600000,10.2751],[1186704000000,10.2402],[1186790400000,10.1843],[1186876800000,10.1843],[1186963200000,10.1843],[1187049600000,10.1715],[1187136000000,10.1112],[1187222400000,10.0448],[1187308800000,10.02],[1187395200000,10.0033],[1187481600000,10.0033],[1187568000000,10.0033],[1187654400000,10.0241],[1187740800000,10.0162],[1187827200000,10.0405],[1187913600000,10.1328],[1188000000000,10.1328],[1188086400000,10.1328],[1188172800000,10.1328],[1188259200000,10.1775],[1188345600000,10.164],[1188432000000,10.1649],[1188518400000,10.1372]], 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: [[1185926400000, 10.270082],[1185926400000, 10.270082],[1186012800000, 10.228009],[1186099200000, 10.249268],[1186185600000, 10.271008],[1186272000000, 10.271008],[1186358400000, 10.271008],[1186444800000, 10.259634],[1186531200000, 10.235795],[1186617600000, 10.275050],[1186704000000, 10.240226],[1186790400000, 10.184310],[1186876800000, 10.184310],[1186963200000, 10.184310],[1187049600000, 10.171531],[1187136000000, 10.111159],[1187222400000, 10.044841],[1187308800000, 10.020019],[1187395200000, 10.003342],[1187481600000, 10.003342],[1187568000000, 10.003342],[1187654400000, 10.024127],[1187740800000, 10.016210],[1187827200000, 10.040470],[1187913600000, 10.132846],[1188000000000, 10.132846],[1188086400000, 10.132846],[1188172800000, 10.132846],[1188259200000, 10.177497],[1188345600000, 10.163971],[1188432000000, 10.164877],[1188518400000, 10.137242]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });