$(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: [[1070236800000,0.17929],[1070323200000,0.17951],[1070409600000,0.17953],[1070496000000,0.17956],[1070582400000,0.17994],[1070668800000,0.17994],[1070755200000,0.17994],[1070841600000,0.17994],[1070928000000,0.18044],[1071014400000,0.18042],[1071100800000,0.18051],[1071187200000,0.18111],[1071273600000,0.18111],[1071360000000,0.18111],[1071446400000,0.18111],[1071532800000,0.18144],[1071619200000,0.18227],[1071705600000,0.18227],[1071792000000,0.18231],[1071878400000,0.18231],[1071964800000,0.18231],[1072051200000,0.18231],[1072137600000,0.18214],[1072224000000,0.18231],[1072310400000,0.1823],[1072396800000,0.18225],[1072483200000,0.18225],[1072569600000,0.18225],[1072656000000,0.18225],[1072742400000,0.18101],[1072828800000,0.18101]], 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: [[1070236800000, 0.179290],[1070236800000, 0.179290],[1070323200000, 0.179510],[1070409600000, 0.179530],[1070496000000, 0.179560],[1070582400000, 0.179940],[1070668800000, 0.179940],[1070755200000, 0.179940],[1070841600000, 0.179940],[1070928000000, 0.180440],[1071014400000, 0.180420],[1071100800000, 0.180510],[1071187200000, 0.181110],[1071273600000, 0.181110],[1071360000000, 0.181110],[1071446400000, 0.181110],[1071532800000, 0.181440],[1071619200000, 0.182270],[1071705600000, 0.182270],[1071792000000, 0.182310],[1071878400000, 0.182310],[1071964800000, 0.182310],[1072051200000, 0.182310],[1072137600000, 0.182140],[1072224000000, 0.182310],[1072310400000, 0.182300],[1072396800000, 0.182250],[1072483200000, 0.182250],[1072569600000, 0.182250],[1072656000000, 0.182250],[1072742400000, 0.181010],[1072828800000, 0.181010]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });