$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1128124800000,7.3198],[1128211200000,7.3198],[1128297600000,7.3198],[1128384000000,7.28164],[1128470400000,7.28002],[1128556800000,7.29497],[1128643200000,7.3181],[1128729600000,7.34022],[1128816000000,7.34022],[1128902400000,7.34022],[1128988800000,7.34022],[1129075200000,7.3013],[1129161600000,7.28618],[1129248000000,7.28499],[1129334400000,7.28536],[1129420800000,7.28536],[1129507200000,7.28536],[1129593600000,7.30015],[1129680000000,7.26714],[1129766400000,7.28002],[1129852800000,7.28201],[1129939200000,7.29844],[1130025600000,7.29844],[1130112000000,7.29844],[1130198400000,7.27655],[1130284800000,7.30624],[1130371200000,7.31179],[1130457600000,7.32964],[1130544000000,7.33343],[1130630400000,7.33343],[1130716800000,7.33343]], 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: [[1128124800000, 7.319795],[1128124800000, 7.319795],[1128211200000, 7.319795],[1128297600000, 7.319795],[1128384000000, 7.281641],[1128470400000, 7.280024],[1128556800000, 7.294968],[1128643200000, 7.318098],[1128729600000, 7.340223],[1128816000000, 7.340223],[1128902400000, 7.340223],[1128988800000, 7.340223],[1129075200000, 7.301296],[1129161600000, 7.286179],[1129248000000, 7.284992],[1129334400000, 7.285360],[1129420800000, 7.285360],[1129507200000, 7.285360],[1129593600000, 7.300146],[1129680000000, 7.267139],[1129766400000, 7.280024],[1129852800000, 7.282008],[1129939200000, 7.298437],[1130025600000, 7.298437],[1130112000000, 7.298437],[1130198400000, 7.276552],[1130284800000, 7.306240],[1130371200000, 7.311794],[1130457600000, 7.329644],[1130544000000, 7.333433],[1130630400000, 7.333433],[1130716800000, 7.333433]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });