$(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: [[1285891200000,5.45066],[1285977600000,5.46793],[1286064000000,5.46793],[1286150400000,5.46793],[1286236800000,5.47031],[1286323200000,5.48034],[1286409600000,5.57759],[1286496000000,5.5744],[1286582400000,5.54757],[1286668800000,5.54757],[1286755200000,5.54757],[1286841600000,5.60124],[1286928000000,5.56578],[1287014400000,5.59785],[1287100800000,5.64325],[1287187200000,5.6255],[1287273600000,5.6255],[1287360000000,5.6255],[1287446400000,5.56712],[1287532800000,5.54472],[1287619200000,5.53544],[1287705600000,5.57035],[1287792000000,5.54096],[1287878400000,5.54096],[1287964800000,5.54096],[1288051200000,5.59373],[1288137600000,5.56311],[1288224000000,5.50589],[1288310400000,5.51769],[1288396800000,5.51228],[1288483200000,5.51228]], 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: [[1285891200000, 5.450655],[1285891200000, 5.450655],[1285977600000, 5.467933],[1286064000000, 5.467933],[1286150400000, 5.467933],[1286236800000, 5.470312],[1286323200000, 5.480337],[1286409600000, 5.577586],[1286496000000, 5.574399],[1286582400000, 5.547566],[1286668800000, 5.547566],[1286755200000, 5.547566],[1286841600000, 5.601238],[1286928000000, 5.565779],[1287014400000, 5.597849],[1287100800000, 5.643254],[1287187200000, 5.625500],[1287273600000, 5.625500],[1287360000000, 5.625500],[1287446400000, 5.567125],[1287532800000, 5.544721],[1287619200000, 5.535444],[1287705600000, 5.570351],[1287792000000, 5.540964],[1287878400000, 5.540964],[1287964800000, 5.540964],[1288051200000, 5.593734],[1288137600000, 5.563112],[1288224000000, 5.505890],[1288310400000, 5.517693],[1288396800000, 5.512281],[1288483200000, 5.512281]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });