$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1146441600000,6.33118],[1146528000000,6.33118],[1146614400000,6.33118],[1146700800000,6.37411],[1146787200000,6.35896],[1146873600000,6.40744],[1146960000000,6.40744],[1147046400000,6.40744],[1147132800000,6.40744],[1147219200000,6.40744],[1147305600000,6.4534],[1147392000000,6.42158],[1147478400000,6.52157],[1147564800000,6.52157],[1147651200000,6.52157],[1147737600000,6.47713],[1147824000000,6.47258],[1147910400000,6.50541],[1147996800000,6.44885],[1148083200000,6.44733],[1148169600000,6.44733],[1148256000000,6.44733],[1148342400000,6.44027],[1148428800000,6.4847],[1148515200000,6.48975],[1148601600000,6.44128],[1148688000000,6.46249],[1148774400000,6.46249],[1148860800000,6.46249],[1148947200000,6.44279],[1149033600000,6.48369]], 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: [[1146441600000, 6.331185],[1146441600000, 6.331185],[1146528000000, 6.331185],[1146614400000, 6.331185],[1146700800000, 6.374110],[1146787200000, 6.358960],[1146873600000, 6.407440],[1146960000000, 6.407440],[1147046400000, 6.407440],[1147132800000, 6.407440],[1147219200000, 6.407440],[1147305600000, 6.453395],[1147392000000, 6.421580],[1147478400000, 6.521570],[1147564800000, 6.521570],[1147651200000, 6.521570],[1147737600000, 6.477130],[1147824000000, 6.472585],[1147910400000, 6.505410],[1147996800000, 6.448850],[1148083200000, 6.447335],[1148169600000, 6.447335],[1148256000000, 6.447335],[1148342400000, 6.440265],[1148428800000, 6.484705],[1148515200000, 6.489755],[1148601600000, 6.441275],[1148688000000, 6.462485],[1148774400000, 6.462485],[1148860800000, 6.462485],[1148947200000, 6.442790],[1149033600000, 6.483695]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });