$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1193875200000,10.3898],[1193961600000,10.3681],[1194048000000,10.4099],[1194134400000,10.4099],[1194220800000,10.4099],[1194307200000,10.4119],[1194393600000,10.4588],[1194480000000,10.5891],[1194566400000,10.5548],[1194652800000,10.5656],[1194739200000,10.5656],[1194825600000,10.5656],[1194912000000,10.4818],[1194998400000,10.5034],[1195084800000,10.5808],[1195171200000,10.5595],[1195257600000,10.5802],[1195344000000,10.5802],[1195430400000,10.5802],[1195516800000,10.5824],[1195603200000,10.6785],[1195689600000,10.7102],[1195776000000,10.7103],[1195862400000,10.7035],[1195948800000,10.7035],[1196035200000,10.7035],[1196121600000,10.7265],[1196208000000,10.7536],[1196294400000,10.6633],[1196380800000,10.6507]], 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, 10.389825],[1193875200000, 10.389825],[1193961600000, 10.368135],[1194048000000, 10.409873],[1194134400000, 10.409873],[1194220800000, 10.409873],[1194307200000, 10.411897],[1194393600000, 10.458763],[1194480000000, 10.589104],[1194566400000, 10.554838],[1194652800000, 10.565567],[1194739200000, 10.565567],[1194825600000, 10.565567],[1194912000000, 10.481770],[1194998400000, 10.503396],[1195084800000, 10.580815],[1195171200000, 10.559484],[1195257600000, 10.580230],[1195344000000, 10.580230],[1195430400000, 10.580230],[1195516800000, 10.582397],[1195603200000, 10.678525],[1195689600000, 10.710193],[1195776000000, 10.710305],[1195862400000, 10.703514],[1195948800000, 10.703514],[1196035200000, 10.703514],[1196121600000, 10.726463],[1196208000000, 10.753572],[1196294400000, 10.663280],[1196380800000, 10.650673]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });