$(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: [[1196467200000,10.6414],[1196553600000,10.6414],[1196640000000,10.6414],[1196726400000,10.5699],[1196812800000,10.6285],[1196899200000,10.6346],[1196985600000,10.5162],[1197072000000,10.6015],[1197158400000,10.6015],[1197244800000,10.6015],[1197331200000,10.6499],[1197417600000,10.6212],[1197504000000,10.628],[1197590400000,10.6399],[1197676800000,10.5168],[1197763200000,10.5168],[1197849600000,10.5168],[1197936000000,10.4342],[1198022400000,10.4539],[1198108800000,10.4284],[1198195200000,10.3978],[1198281600000,10.4218],[1198368000000,10.4218],[1198454400000,10.4218],[1198540800000,10.4348],[1198627200000,10.4348],[1198713600000,10.4348],[1198800000000,10.5219],[1198886400000,10.6448]], 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: [[1196467200000, 10.641406],[1196467200000, 10.641406],[1196553600000, 10.641406],[1196640000000, 10.641406],[1196726400000, 10.569902],[1196812800000, 10.628505],[1196899200000, 10.634621],[1196985600000, 10.516197],[1197072000000, 10.601526],[1197158400000, 10.601526],[1197244800000, 10.601526],[1197331200000, 10.649936],[1197417600000, 10.621216],[1197504000000, 10.627958],[1197590400000, 10.639855],[1197676800000, 10.516786],[1197763200000, 10.516786],[1197849600000, 10.516786],[1197936000000, 10.434202],[1198022400000, 10.453877],[1198108800000, 10.428402],[1198195200000, 10.397826],[1198281600000, 10.421785],[1198368000000, 10.421785],[1198454400000, 10.421785],[1198540800000, 10.434831],[1198627200000, 10.434831],[1198713600000, 10.434831],[1198800000000, 10.521860],[1198886400000, 10.644849]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });