$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1004572800000,7.70411],[1004659200000,7.75436],[1004745600000,7.75436],[1004832000000,7.75436],[1004918400000,7.75436],[1005004800000,7.70658],[1005091200000,7.71706],[1005177600000,7.75673],[1005264000000,7.69355],[1005350400000,7.69355],[1005436800000,7.69355],[1005523200000,7.69355],[1005609600000,7.69472],[1005696000000,7.64266],[1005782400000,7.60225],[1005868800000,7.57161],[1005955200000,7.57161],[1006041600000,7.57161],[1006128000000,7.57161],[1006214400000,7.50959],[1006300800000,7.48247],[1006387200000,7.48697],[1006473600000,7.46253],[1006560000000,7.46253],[1006646400000,7.46253],[1006732800000,7.46253],[1006819200000,7.47488],[1006905600000,7.43513],[1006992000000,7.47569],[1007078400000,7.54076]], 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: [[1004572800000, 7.704110],[1004572800000, 7.704110],[1004659200000, 7.754360],[1004745600000, 7.754360],[1004832000000, 7.754360],[1004918400000, 7.754360],[1005004800000, 7.706580],[1005091200000, 7.717060],[1005177600000, 7.756730],[1005264000000, 7.693550],[1005350400000, 7.693550],[1005436800000, 7.693550],[1005523200000, 7.693550],[1005609600000, 7.694720],[1005696000000, 7.642660],[1005782400000, 7.602250],[1005868800000, 7.571610],[1005955200000, 7.571610],[1006041600000, 7.571610],[1006128000000, 7.571610],[1006214400000, 7.509590],[1006300800000, 7.482470],[1006387200000, 7.486970],[1006473600000, 7.462530],[1006560000000, 7.462530],[1006646400000, 7.462530],[1006732800000, 7.462530],[1006819200000, 7.474880],[1006905600000, 7.435130],[1006992000000, 7.475690],[1007078400000, 7.540760]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });