$(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: [[1039046400000,5.3267],[1039132800000,5.3347],[1039219200000,5.3347],[1039305600000,5.3347],[1039392000000,5.38108],[1039478400000,5.38108],[1039564800000,5.36722],[1039651200000,5.41467],[1039737600000,5.44933],[1039824000000,5.44933],[1039910400000,5.44933],[1039996800000,5.44453],[1040083200000,5.49518],[1040169600000,5.49518],[1040256000000,5.47705],[1040342400000,5.46745],[1040428800000,5.46745],[1040515200000,5.46745],[1040601600000,5.46745],[1040688000000,5.48185],[1040774400000,5.48931],[1040860800000,5.48931],[1040947200000,5.5329],[1041033600000,5.5329],[1041120000000,5.5329],[1041206400000,5.5329],[1041292800000,5.5329]], 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: [[1039046400000, 5.326700],[1039046400000, 5.326700],[1039132800000, 5.334700],[1039219200000, 5.334700],[1039305600000, 5.334700],[1039392000000, 5.381080],[1039478400000, 5.381080],[1039564800000, 5.367220],[1039651200000, 5.414670],[1039737600000, 5.449330],[1039824000000, 5.449330],[1039910400000, 5.449330],[1039996800000, 5.444530],[1040083200000, 5.495180],[1040169600000, 5.495180],[1040256000000, 5.477050],[1040342400000, 5.467450],[1040428800000, 5.467450],[1040515200000, 5.467450],[1040601600000, 5.467450],[1040688000000, 5.481850],[1040774400000, 5.489310],[1040860800000, 5.489310],[1040947200000, 5.532900],[1041033600000, 5.532900],[1041120000000, 5.532900],[1041206400000, 5.532900],[1041292800000, 5.532900]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });