$(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: [[1291161600000,14.5465],[1291248000000,14.6691],[1291334400000,14.7176],[1291420800000,14.8231],[1291507200000,14.8231],[1291593600000,14.8231],[1291680000000,14.8905],[1291766400000,14.9708],[1291852800000,14.7891],[1291939200000,14.8048],[1292025600000,14.8416],[1292112000000,14.8416],[1292198400000,14.8416],[1292284800000,14.8716],[1292371200000,15.0746],[1292457600000,14.9904],[1292544000000,14.8522],[1292630400000,14.8769],[1292716800000,14.8769],[1292803200000,14.8769],[1292889600000,14.7584],[1292976000000,14.7695],[1293062400000,14.7108],[1293148800000,14.6652],[1293235200000,14.7008],[1293321600000,14.7008],[1293408000000,14.7008],[1293494400000,14.7458],[1293580800000,14.7995],[1293667200000,14.7326],[1293753600000,14.8959]], 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: [[1291161600000, 14.546472],[1291161600000, 14.546472],[1291248000000, 14.669138],[1291334400000, 14.717585],[1291420800000, 14.823127],[1291507200000, 14.823127],[1291593600000, 14.823127],[1291680000000, 14.890513],[1291766400000, 14.970777],[1291852800000, 14.789133],[1291939200000, 14.804819],[1292025600000, 14.841603],[1292112000000, 14.841603],[1292198400000, 14.841603],[1292284800000, 14.871568],[1292371200000, 15.074574],[1292457600000, 14.990421],[1292544000000, 14.852186],[1292630400000, 14.876868],[1292716800000, 14.876868],[1292803200000, 14.876868],[1292889600000, 14.758406],[1292976000000, 14.769469],[1293062400000, 14.710822],[1293148800000, 14.665233],[1293235200000, 14.700830],[1293321600000, 14.700830],[1293408000000, 14.700830],[1293494400000, 14.745771],[1293580800000, 14.799481],[1293667200000, 14.732606],[1293753600000, 14.895939]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });