$(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: [[1057017600000,8.81948],[1057104000000,8.8675],[1057190400000,8.85957],[1057276800000,8.90316],[1057363200000,8.90316],[1057449600000,8.90316],[1057536000000,8.79763],[1057622400000,8.74383],[1057708800000,8.74383],[1057795200000,8.6632],[1057881600000,8.72065],[1057968000000,8.72065],[1058054400000,8.72065],[1058140800000,8.66853],[1058227200000,8.582],[1058313600000,8.582],[1058400000000,8.49278],[1058486400000,8.48077],[1058572800000,8.48077],[1058659200000,8.48077],[1058745600000,8.48696],[1058832000000,8.53856],[1058918400000,8.54963],[1059004800000,8.59187],[1059091200000,8.60662],[1059177600000,8.60662],[1059264000000,8.60662],[1059350400000,8.66681],[1059436800000,8.65379],[1059523200000,8.65379],[1059609600000,8.64412]], 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: [[1057017600000, 8.819480],[1057017600000, 8.819480],[1057104000000, 8.867500],[1057190400000, 8.859570],[1057276800000, 8.903160],[1057363200000, 8.903160],[1057449600000, 8.903160],[1057536000000, 8.797630],[1057622400000, 8.743830],[1057708800000, 8.743830],[1057795200000, 8.663200],[1057881600000, 8.720650],[1057968000000, 8.720650],[1058054400000, 8.720650],[1058140800000, 8.668530],[1058227200000, 8.582000],[1058313600000, 8.582000],[1058400000000, 8.492780],[1058486400000, 8.480770],[1058572800000, 8.480770],[1058659200000, 8.480770],[1058745600000, 8.486960],[1058832000000, 8.538560],[1058918400000, 8.549630],[1059004800000, 8.591870],[1059091200000, 8.606620],[1059177600000, 8.606620],[1059264000000, 8.606620],[1059350400000, 8.666810],[1059436800000, 8.653790],[1059523200000, 8.653790],[1059609600000, 8.644120]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });