$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1039046400000,0.16735],[1039132800000,0.16734],[1039219200000,0.16734],[1039305600000,0.16734],[1039392000000,0.16734],[1039478400000,0.16734],[1039564800000,0.16734],[1039651200000,0.16734],[1039737600000,0.16734],[1039824000000,0.16734],[1039910400000,0.16734],[1039996800000,0.16738],[1040083200000,0.16735],[1040169600000,0.16735],[1040256000000,0.16737],[1040342400000,0.16742],[1040428800000,0.16742],[1040515200000,0.16742],[1040601600000,0.16742],[1040688000000,0.16768],[1040774400000,0.1677],[1040860800000,0.1677],[1040947200000,0.16777],[1041033600000,0.16777],[1041120000000,0.16777],[1041206400000,0.16777],[1041292800000,0.16777]], 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, 0.167350],[1039046400000, 0.167350],[1039132800000, 0.167340],[1039219200000, 0.167340],[1039305600000, 0.167340],[1039392000000, 0.167340],[1039478400000, 0.167340],[1039564800000, 0.167340],[1039651200000, 0.167340],[1039737600000, 0.167340],[1039824000000, 0.167340],[1039910400000, 0.167340],[1039996800000, 0.167380],[1040083200000, 0.167350],[1040169600000, 0.167350],[1040256000000, 0.167370],[1040342400000, 0.167420],[1040428800000, 0.167420],[1040515200000, 0.167420],[1040601600000, 0.167420],[1040688000000, 0.167680],[1040774400000, 0.167700],[1040860800000, 0.167700],[1040947200000, 0.167770],[1041033600000, 0.167770],[1041120000000, 0.167770],[1041206400000, 0.167770],[1041292800000, 0.167770]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });