$(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: [[1318032000000,15.1129],[1318118400000,15.1129],[1318204800000,15.1129],[1318291200000,15.3069],[1318377600000,15.3748],[1318464000000,15.5608],[1318550400000,15.5184],[1318636800000,15.6111],[1318723200000,15.6111],[1318809600000,15.6111],[1318896000000,15.5871],[1318982400000,15.4564],[1319068800000,15.6326],[1319155200000,15.6133],[1319241600000,15.6031],[1319328000000,15.6031],[1319414400000,15.6031],[1319500800000,15.682],[1319587200000,15.7689],[1319673600000,15.7723],[1319760000000,15.8996]], 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: [[1318032000000, 15.112918],[1318032000000, 15.112918],[1318118400000, 15.112918],[1318204800000, 15.112918],[1318291200000, 15.306908],[1318377600000, 15.374792],[1318464000000, 15.560810],[1318550400000, 15.518417],[1318636800000, 15.611070],[1318723200000, 15.611070],[1318809600000, 15.611070],[1318896000000, 15.587068],[1318982400000, 15.456380],[1319068800000, 15.632598],[1319155200000, 15.613284],[1319241600000, 15.603106],[1319328000000, 15.603106],[1319414400000, 15.603106],[1319500800000, 15.682035],[1319587200000, 15.768857],[1319673600000, 15.772332],[1319760000000, 15.899635]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });