$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1372636800000,8.45082],[1372723200000,8.44447],[1372809600000,8.42196],[1372896000000,8.43153],[1372982400000,8.41832],[1373068800000,8.33931],[1373155200000,8.33931],[1373241600000,8.33931],[1373328000000,8.2804],[1373414400000,8.25297],[1373500800000,8.23266],[1373587200000,8.39864],[1373673600000,8.40981],[1373760000000,8.40981],[1373846400000,8.40981],[1373932800000,8.39155],[1374019200000,8.47564],[1374105600000,8.50859],[1374192000000,8.46017],[1374278400000,8.48573],[1374364800000,8.48573],[1374451200000,null],[1374537600000,8.50734],[1374624000000,8.5047],[1374710400000,8.5466],[1374796800000,8.53406],[1374883200000,8.59309],[1374969600000,8.59309],[1375056000000,8.59309],[1375142400000,8.60236],[1375228800000,8.60795]], 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: [[1372636800000, 8.450817],[1372636800000, 8.450817],[1372723200000, 8.444468],[1372809600000, 8.421959],[1372896000000, 8.431525],[1372982400000, 8.418325],[1373068800000, 8.339312],[1373155200000, 8.339312],[1373241600000, 8.339312],[1373328000000, 8.280397],[1373414400000, 8.252971],[1373500800000, 8.232661],[1373587200000, 8.398638],[1373673600000, 8.409813],[1373760000000, 8.409813],[1373846400000, 8.409813],[1373932800000, 8.391554],[1374019200000, 8.475643],[1374105600000, 8.508594],[1374192000000, 8.460174],[1374278400000, 8.485732],[1374364800000, 8.485732],[1374537600000, 8.507343],[1374624000000, 8.504702],[1374710400000, 8.546600],[1374796800000, 8.534055],[1374883200000, 8.593091],[1374969600000, 8.593091],[1375056000000, 8.593091],[1375142400000, 8.602361],[1375228800000, 8.607946]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });