$(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: 'Курс DKK, грн'}, 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: 'Курс DKK', data: [[1427846400000,3.37783],[1427932800000,3.38047],[1428019200000,3.40804],[1428105600000,3.37837],[1428192000000,3.37837],[1428278400000,3.37837],[1428364800000,3.39906],[1428451200000,3.41261],[1428537600000,3.41782],[1428624000000,3.37932],[1428710400000,3.2371],[1428796800000,3.2371],[1428883200000,3.2371],[1428969600000,3.2371],[1429056000000,3.24264],[1429142400000,3.08611],[1429228800000,3.07765],[1429315200000,3.05219],[1429401600000,3.05219],[1429488000000,3.05219],[1429574400000,3.19872],[1429660800000,3.19468],[1429747200000,3.24543],[1429833600000,3.25337],[1429920000000,3.25729],[1430006400000,3.25729],[1430092800000,3.25729],[1430179200000,3.32147],[1430265600000,3.26057],[1430352000000,3.10319]], 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, 3.377825],[1427846400000, 3.377825],[1427932800000, 3.380472],[1428019200000, 3.408039],[1428105600000, 3.378366],[1428192000000, 3.378366],[1428278400000, 3.378366],[1428364800000, 3.399055],[1428451200000, 3.412613],[1428537600000, 3.417820],[1428624000000, 3.379320],[1428710400000, 3.237099],[1428796800000, 3.237099],[1428883200000, 3.237099],[1428969600000, 3.237099],[1429056000000, 3.242641],[1429142400000, 3.086106],[1429228800000, 3.077650],[1429315200000, 3.052186],[1429401600000, 3.052186],[1429488000000, 3.052186],[1429574400000, 3.198716],[1429660800000, 3.194681],[1429747200000, 3.245431],[1429833600000, 3.253369],[1429920000000, 3.257287],[1430006400000, 3.257287],[1430092800000, 3.257287],[1430179200000, 3.321470],[1430265600000, 3.260570],[1430352000000, 3.103194]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });