$(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: [[1238544000000,14.4408],[1238630400000,14.3816],[1238716800000,14.536],[1238803200000,14.5698],[1238889600000,14.5698],[1238976000000,14.5698],[1239062400000,14.653],[1239148800000,14.3873],[1239235200000,14.3633],[1239321600000,14.4089],[1239408000000,14.4089],[1239494400000,14.4089],[1239580800000,14.4089],[1239667200000,14.4089],[1239753600000,14.4142],[1239840000000,14.3023],[1239926400000,14.3212],[1240012800000,14.1775],[1240099200000,14.1775],[1240185600000,14.1775],[1240272000000,14.1775],[1240358400000,14.0387],[1240444800000,14.053],[1240531200000,14.1688],[1240617600000,14.3664],[1240704000000,14.3664],[1240790400000,14.3664],[1240876800000,14.2482],[1240963200000,14.1038],[1241049600000,14.4033]], 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: [[1238544000000, 14.440755],[1238544000000, 14.440755],[1238630400000, 14.381585],[1238716800000, 14.536002],[1238803200000, 14.569767],[1238889600000, 14.569767],[1238976000000, 14.569767],[1239062400000, 14.653017],[1239148800000, 14.387299],[1239235200000, 14.363274],[1239321600000, 14.408868],[1239408000000, 14.408868],[1239494400000, 14.408868],[1239580800000, 14.408868],[1239667200000, 14.408868],[1239753600000, 14.414157],[1239840000000, 14.302327],[1239926400000, 14.321240],[1240012800000, 14.177468],[1240099200000, 14.177468],[1240185600000, 14.177468],[1240272000000, 14.177468],[1240358400000, 14.038686],[1240444800000, 14.052988],[1240531200000, 14.168782],[1240617600000, 14.366385],[1240704000000, 14.366385],[1240790400000, 14.366385],[1240876800000, 14.248202],[1240963200000, 14.103821],[1241049600000, 14.403299]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });