$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1335830400000,4.54031],[1335916800000,4.54031],[1336003200000,4.54031],[1336089600000,4.53412],[1336176000000,4.5514],[1336262400000,4.5514],[1336348800000,4.5514],[1336435200000,4.52681],[1336521600000,4.52533],[1336608000000,4.52533],[1336694400000,4.47626],[1336780800000,4.47039],[1336867200000,4.47039],[1336953600000,4.47039],[1337040000000,4.42045],[1337126400000,4.42118],[1337212800000,4.39071],[1337299200000,4.36837],[1337385600000,4.36871],[1337472000000,4.36871],[1337558400000,4.36871],[1337644800000,4.35975],[1337731200000,4.37712],[1337817600000,4.32214],[1337904000000,4.32967],[1337990400000,4.33973],[1338076800000,4.33973],[1338163200000,4.33973],[1338249600000,4.35268],[1338336000000,4.35023],[1338422400000,4.3354]], 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: [[1335830400000, 4.540309],[1335830400000, 4.540309],[1335916800000, 4.540309],[1336003200000, 4.540309],[1336089600000, 4.534117],[1336176000000, 4.551398],[1336262400000, 4.551398],[1336348800000, 4.551398],[1336435200000, 4.526814],[1336521600000, 4.525329],[1336608000000, 4.525329],[1336694400000, 4.476265],[1336780800000, 4.470394],[1336867200000, 4.470394],[1336953600000, 4.470394],[1337040000000, 4.420446],[1337126400000, 4.421179],[1337212800000, 4.390708],[1337299200000, 4.368372],[1337385600000, 4.368710],[1337472000000, 4.368710],[1337558400000, 4.368710],[1337644800000, 4.359746],[1337731200000, 4.377123],[1337817600000, 4.322144],[1337904000000, 4.329673],[1337990400000, 4.339734],[1338076800000, 4.339734],[1338163200000, 4.339734],[1338249600000, 4.352681],[1338336000000, 4.350229],[1338422400000, 4.335400]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });