$(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: [[975628800000,7.70422],[975715200000,7.79142],[975801600000,7.79142],[975888000000,7.79142],[975974400000,7.8915],[976060800000,7.85059],[976147200000,7.80113],[976233600000,7.85155],[976320000000,7.78663],[976406400000,7.78663],[976492800000,7.78663],[976579200000,7.91225],[976665600000,7.87324],[976752000000,7.87392],[976838400000,7.96873],[976924800000,8.02185],[977011200000,8.02185],[977097600000,8.02185],[977184000000,8.02379],[977270400000,7.97003],[977356800000,7.9767],[977443200000,8.04419],[977529600000,8.04555],[977616000000,8.04555],[977702400000,8.04555],[977788800000,8.04555],[977875200000,8.0454],[977961600000,8.0908],[978048000000,8.08902],[978134400000,8.10255],[978220800000,8.10255]], 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: [[975628800000, 7.704220],[975628800000, 7.704220],[975715200000, 7.791420],[975801600000, 7.791420],[975888000000, 7.791420],[975974400000, 7.891500],[976060800000, 7.850590],[976147200000, 7.801130],[976233600000, 7.851550],[976320000000, 7.786630],[976406400000, 7.786630],[976492800000, 7.786630],[976579200000, 7.912250],[976665600000, 7.873240],[976752000000, 7.873920],[976838400000, 7.968730],[976924800000, 8.021850],[977011200000, 8.021850],[977097600000, 8.021850],[977184000000, 8.023790],[977270400000, 7.970030],[977356800000, 7.976700],[977443200000, 8.044190],[977529600000, 8.045550],[977616000000, 8.045550],[977702400000, 8.045550],[977788800000, 8.045550],[977875200000, 8.045400],[977961600000, 8.090800],[978048000000, 8.089020],[978134400000, 8.102550],[978220800000, 8.102550]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });