$(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: [[1427846400000,18.3661],[1427932800000,18.5261],[1428019200000,18.594],[1428105600000,18.4321],[1428192000000,18.4321],[1428278400000,18.4321],[1428364800000,18.545],[1428451200000,18.7989],[1428537600000,18.9345],[1428624000000,18.7129],[1428710400000,18.0684],[1428796800000,18.0684],[1428883200000,18.0684],[1428969600000,18.0684],[1429056000000,18.2212],[1429142400000,17.3565],[1429228800000,17.4284],[1429315200000,17.2736],[1429401600000,17.2736],[1429488000000,17.2736],[1429574400000,18.1636],[1429660800000,18.2159],[1429747200000,18.4132],[1429833600000,18.4286],[1429920000000,18.5254],[1430006400000,18.5254],[1430092800000,18.5254],[1430179200000,18.8376],[1430265600000,18.4457],[1430352000000,17.4602]], 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: [[1427846400000, 18.366096],[1427846400000, 18.366096],[1427932800000, 18.526138],[1428019200000, 18.594011],[1428105600000, 18.432117],[1428192000000, 18.432117],[1428278400000, 18.432117],[1428364800000, 18.544993],[1428451200000, 18.798934],[1428537600000, 18.934475],[1428624000000, 18.712863],[1428710400000, 18.068362],[1428796800000, 18.068362],[1428883200000, 18.068362],[1428969600000, 18.068362],[1429056000000, 18.221192],[1429142400000, 17.356530],[1429228800000, 17.428419],[1429315200000, 17.273570],[1429401600000, 17.273570],[1429488000000, 17.273570],[1429574400000, 18.163632],[1429660800000, 18.215905],[1429747200000, 18.413228],[1429833600000, 18.428596],[1429920000000, 18.525419],[1430006400000, 18.525419],[1430092800000, 18.525419],[1430179200000, 18.837573],[1430265600000, 18.445656],[1430352000000, 17.460206]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });