$(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: [[1294272000000,14.8892],[1294358400000,14.8526],[1294444800000,14.8526],[1294531200000,14.8526],[1294617600000,14.8526],[1294704000000,14.6569],[1294790400000,14.6973],[1294876800000,14.7299],[1294963200000,14.9709],[1295049600000,15.1202],[1295136000000,15.1202],[1295222400000,15.1202],[1295308800000,15.0661],[1295395200000,15.1319],[1295481600000,15.2651],[1295568000000,15.2248],[1295654400000,15.2652],[1295740800000,15.2652],[1295827200000,15.2652],[1295913600000,15.3287],[1296000000000,15.358],[1296086400000,15.423],[1296172800000,15.4171],[1296259200000,15.443],[1296345600000,15.443],[1296432000000,15.443]], 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: [[1294272000000, 14.889178],[1294272000000, 14.889178],[1294358400000, 14.852640],[1294444800000, 14.852640],[1294531200000, 14.852640],[1294617600000, 14.852640],[1294704000000, 14.656858],[1294790400000, 14.697300],[1294876800000, 14.729880],[1294963200000, 14.970851],[1295049600000, 15.120182],[1295136000000, 15.120182],[1295222400000, 15.120182],[1295308800000, 15.066140],[1295395200000, 15.131896],[1295481600000, 15.265104],[1295568000000, 15.224759],[1295654400000, 15.265180],[1295740800000, 15.265180],[1295827200000, 15.265180],[1295913600000, 15.328667],[1296000000000, 15.357986],[1296086400000, 15.422996],[1296172800000, 15.417134],[1296259200000, 15.442956],[1296345600000, 15.442956],[1296432000000, 15.442956]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });