$(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: [[1259625600000,16.9301],[1259712000000,17.005],[1259798400000,17.0306],[1259884800000,17.0658],[1259971200000,17.0088],[1260057600000,17.0088],[1260144000000,17.0088],[1260230400000,16.6868],[1260316800000,16.6685],[1260403200000,16.6683],[1260489600000,16.6348],[1260576000000,16.667],[1260662400000,16.667],[1260748800000,16.667],[1260835200000,16.5429],[1260921600000,16.4149],[1261008000000,16.4255],[1261094400000,16.1734],[1261180800000,16.1667],[1261267200000,16.1667],[1261353600000,16.1667],[1261440000000,16.197],[1261526400000,16.0719],[1261612800000,16.062],[1261699200000,16.1838],[1261785600000,16.1828],[1261872000000,16.1828],[1261958400000,16.1828],[1262044800000,16.1942],[1262131200000,16.2168],[1262217600000,16.1411]], 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: [[1259625600000, 16.930124],[1259625600000, 16.930124],[1259712000000, 17.004970],[1259798400000, 17.030600],[1259884800000, 17.065800],[1259971200000, 17.008753],[1260057600000, 17.008753],[1260144000000, 17.008753],[1260230400000, 16.686842],[1260316800000, 16.668504],[1260403200000, 16.668263],[1260489600000, 16.634777],[1260576000000, 16.666975],[1260662400000, 16.666975],[1260748800000, 16.666975],[1260835200000, 16.542860],[1260921600000, 16.414881],[1261008000000, 16.425494],[1261094400000, 16.173417],[1261180800000, 16.166651],[1261267200000, 16.166651],[1261353600000, 16.166651],[1261440000000, 16.197024],[1261526400000, 16.071942],[1261612800000, 16.062012],[1261699200000, 16.183783],[1261785600000, 16.182767],[1261872000000, 16.182767],[1261958400000, 16.182767],[1262044800000, 16.194188],[1262131200000, 16.216774],[1262217600000, 16.141115]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });