$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1243814400000,6.92895],[1243900800000,7.02873],[1243987200000,7.02213],[1244073600000,6.99368],[1244160000000,6.83653],[1244246400000,6.89237],[1244332800000,6.89237],[1244419200000,6.89237],[1244505600000,6.89237],[1244592000000,6.89712],[1244678400000,6.92363],[1244764800000,6.89061],[1244851200000,6.78572],[1244937600000,6.78572],[1245024000000,6.78572],[1245110400000,6.7188],[1245196800000,6.77186],[1245283200000,6.67639],[1245369600000,6.72891],[1245456000000,6.75562],[1245542400000,6.75562],[1245628800000,6.75562],[1245715200000,6.64505],[1245801600000,6.60754],[1245888000000,6.6408],[1245974400000,6.56428],[1246060800000,6.65244],[1246147200000,6.65244],[1246233600000,6.65244],[1246320000000,6.65244]], 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: [[1243814400000, 6.928947],[1243814400000, 6.928947],[1243900800000, 7.028727],[1243987200000, 7.022130],[1244073600000, 6.993678],[1244160000000, 6.836533],[1244246400000, 6.892374],[1244332800000, 6.892374],[1244419200000, 6.892374],[1244505600000, 6.892374],[1244592000000, 6.897116],[1244678400000, 6.923627],[1244764800000, 6.890607],[1244851200000, 6.785717],[1244937600000, 6.785717],[1245024000000, 6.785717],[1245110400000, 6.718795],[1245196800000, 6.771864],[1245283200000, 6.676394],[1245369600000, 6.728913],[1245456000000, 6.755619],[1245542400000, 6.755619],[1245628800000, 6.755619],[1245715200000, 6.645047],[1245801600000, 6.607537],[1245888000000, 6.640800],[1245974400000, 6.564277],[1246060800000, 6.652444],[1246147200000, 6.652444],[1246233600000, 6.652444],[1246320000000, 6.652444]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });