$(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: [[1151712000000,9.22291],[1151798400000,9.22291],[1151884800000,9.22291],[1151971200000,9.2801],[1152057600000,9.28083],[1152144000000,9.28167],[1152230400000,9.24019],[1152316800000,9.27006],[1152403200000,9.27006],[1152489600000,9.27006],[1152576000000,9.25253],[1152662400000,9.24225],[1152748800000,9.22944],[1152835200000,9.20899],[1152921600000,9.19013],[1153008000000,9.19013],[1153094400000,9.19013],[1153180800000,9.09812],[1153267200000,9.09218],[1153353600000,9.05662],[1153440000000,9.17344],[1153526400000,9.20029],[1153612800000,9.20029],[1153699200000,9.20029],[1153785600000,9.16619],[1153872000000,9.16968],[1153958400000,9.1315],[1154044800000,9.24165],[1154131200000,9.18868],[1154217600000,9.18868],[1154304000000,9.18868]], 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: [[1151712000000, 9.222906],[1151712000000, 9.222906],[1151798400000, 9.222906],[1151884800000, 9.222906],[1151971200000, 9.280101],[1152057600000, 9.280826],[1152144000000, 9.281669],[1152230400000, 9.240194],[1152316800000, 9.270062],[1152403200000, 9.270062],[1152489600000, 9.270062],[1152576000000, 9.252529],[1152662400000, 9.242247],[1152748800000, 9.229435],[1152835200000, 9.208994],[1152921600000, 9.190129],[1153008000000, 9.190129],[1153094400000, 9.190129],[1153180800000, 9.098125],[1153267200000, 9.092177],[1153353600000, 9.056624],[1153440000000, 9.173441],[1153526400000, 9.200287],[1153612800000, 9.200287],[1153699200000, 9.200287],[1153785600000, 9.166185],[1153872000000, 9.169680],[1153958400000, 9.131497],[1154044800000, 9.241645],[1154131200000, 9.188678],[1154217600000, 9.188678],[1154304000000, 9.188678]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });