$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1380585600000,12.2619],[1380672000000,12.2843],[1380758400000,12.277],[1380844800000,12.3019],[1380931200000,12.2908],[1381017600000,12.2908],[1381104000000,12.2908],[1381190400000,12.289],[1381276800000,12.287],[1381363200000,12.2575],[1381449600000,12.2575],[1381536000000,12.2645],[1381622400000,12.2645],[1381708800000,12.2645],[1381795200000,12.2645],[1381881600000,12.2295],[1381968000000,12.261],[1382054400000,12.2931],[1382140800000,12.3354],[1382227200000,12.3354],[1382313600000,12.3354],[1382400000000,12.3199],[1382486400000,12.3126],[1382572800000,12.3471],[1382659200000,12.3716],[1382745600000,12.3733],[1382832000000,12.3733],[1382918400000,12.3733],[1383004800000,12.3671],[1383091200000,12.3412],[1383177600000,12.3375]], 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: [[1380585600000, 12.261929],[1380585600000, 12.261929],[1380672000000, 12.284280],[1380758400000, 12.276959],[1380844800000, 12.301920],[1380931200000, 12.290834],[1381017600000, 12.290834],[1381104000000, 12.290834],[1381190400000, 12.289020],[1381276800000, 12.286999],[1381363200000, 12.257510],[1381449600000, 12.257510],[1381536000000, 12.264469],[1381622400000, 12.264469],[1381708800000, 12.264469],[1381795200000, 12.264469],[1381881600000, 12.229473],[1381968000000, 12.260970],[1382054400000, 12.293065],[1382140800000, 12.335391],[1382227200000, 12.335391],[1382313600000, 12.335391],[1382400000000, 12.319895],[1382486400000, 12.312607],[1382572800000, 12.347147],[1382659200000, 12.371648],[1382745600000, 12.373276],[1382832000000, 12.373276],[1382918400000, 12.373276],[1383004800000, 12.367092],[1383091200000, 12.341161],[1383177600000, 12.337504]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });