$(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: [[1270080000000,15.0771],[1270166400000,15.0563],[1270252800000,15.0563],[1270339200000,15.0563],[1270425600000,15.0563],[1270512000000,15.0563],[1270598400000,15.0033],[1270684800000,14.9517],[1270771200000,14.9106],[1270857600000,15.0182],[1270944000000,15.0182],[1271030400000,15.0182],[1271116800000,15.2415],[1271203200000,15.2368],[1271289600000,15.2381],[1271376000000,15.1577],[1271462400000,15.1498],[1271548800000,15.1498],[1271635200000,15.1498],[1271721600000,15.0368],[1271808000000,15.1095],[1271894400000,14.9773],[1271980800000,14.9431],[1272067200000,14.9075],[1272153600000,14.9075],[1272240000000,14.9075],[1272326400000,14.9193],[1272412800000,14.8779],[1272499200000,14.8275],[1272585600000,14.8377]], 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: [[1270080000000, 15.077075],[1270080000000, 15.077075],[1270166400000, 15.056270],[1270252800000, 15.056270],[1270339200000, 15.056270],[1270425600000, 15.056270],[1270512000000, 15.056270],[1270598400000, 15.003293],[1270684800000, 14.951744],[1270771200000, 14.910595],[1270857600000, 15.018159],[1270944000000, 15.018159],[1271030400000, 15.018159],[1271116800000, 15.241543],[1271203200000, 15.236758],[1271289600000, 15.238149],[1271376000000, 15.157729],[1271462400000, 15.149796],[1271548800000, 15.149796],[1271635200000, 15.149796],[1271721600000, 15.036820],[1271808000000, 15.109505],[1271894400000, 14.977306],[1271980800000, 14.943074],[1272067200000, 14.907492],[1272153600000, 14.907492],[1272240000000, 14.907492],[1272326400000, 14.919256],[1272412800000, 14.877855],[1272499200000, 14.827478],[1272585600000, 14.837697]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });