$(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: [[1193875200000,7.29573],[1193961600000,7.28362],[1194048000000,7.31189],[1194134400000,7.31189],[1194220800000,7.31189],[1194307200000,7.31644],[1194393600000,7.34624],[1194480000000,7.43461],[1194566400000,7.40633],[1194652800000,7.41491],[1194739200000,7.41491],[1194825600000,7.41491],[1194912000000,7.3624],[1194998400000,7.37653],[1195084800000,7.4235],[1195171200000,7.39269],[1195257600000,7.39876],[1195344000000,7.39876],[1195430400000,7.39876],[1195516800000,7.40027],[1195603200000,7.46643],[1195689600000,7.48107],[1195776000000,7.48864],[1195862400000,7.47855],[1195948800000,7.47855],[1196035200000,7.47855],[1196121600000,7.49672],[1196208000000,7.51137],[1196294400000,7.44724],[1196380800000,7.44269]], 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: [[1193875200000, 7.295735],[1193875200000, 7.295735],[1193961600000, 7.283615],[1194048000000, 7.311895],[1194134400000, 7.311895],[1194220800000, 7.311895],[1194307200000, 7.316440],[1194393600000, 7.346235],[1194480000000, 7.434610],[1194566400000, 7.406330],[1194652800000, 7.414915],[1194739200000, 7.414915],[1194825600000, 7.414915],[1194912000000, 7.362395],[1194998400000, 7.376535],[1195084800000, 7.423500],[1195171200000, 7.392695],[1195257600000, 7.398755],[1195344000000, 7.398755],[1195430400000, 7.398755],[1195516800000, 7.400270],[1195603200000, 7.466425],[1195689600000, 7.481070],[1195776000000, 7.488645],[1195862400000, 7.478545],[1195948800000, 7.478545],[1196035200000, 7.478545],[1196121600000, 7.496725],[1196208000000, 7.511370],[1196294400000, 7.447235],[1196380800000, 7.442690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });