$(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: [[988675200000,7.81368],[988761600000,7.81368],[988848000000,7.81368],[988934400000,7.74927],[989020800000,7.77547],[989107200000,7.77547],[989193600000,7.77547],[989280000000,7.78974],[989366400000,7.76123],[989452800000,7.76123],[989539200000,7.69991],[989625600000,7.69991],[989712000000,7.68365],[989798400000,7.68365],[989884800000,7.66959],[989971200000,7.67317],[990057600000,7.72066],[990144000000,7.73876],[990230400000,7.74041],[990316800000,7.74041],[990403200000,7.74041],[990489600000,7.77985],[990576000000,7.74495],[990662400000,7.69635],[990748800000,7.66191],[990835200000,7.69211],[990921600000,7.69211],[991008000000,7.69211],[991094400000,7.68203],[991180800000,7.67837],[991267200000,7.69311]], 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: [[988675200000, 7.813680],[988675200000, 7.813680],[988761600000, 7.813680],[988848000000, 7.813680],[988934400000, 7.749270],[989020800000, 7.775470],[989107200000, 7.775470],[989193600000, 7.775470],[989280000000, 7.789740],[989366400000, 7.761230],[989452800000, 7.761230],[989539200000, 7.699910],[989625600000, 7.699910],[989712000000, 7.683650],[989798400000, 7.683650],[989884800000, 7.669590],[989971200000, 7.673170],[990057600000, 7.720660],[990144000000, 7.738760],[990230400000, 7.740410],[990316800000, 7.740410],[990403200000, 7.740410],[990489600000, 7.779850],[990576000000, 7.744950],[990662400000, 7.696350],[990748800000, 7.661910],[990835200000, 7.692110],[990921600000, 7.692110],[991008000000, 7.692110],[991094400000, 7.682030],[991180800000, 7.678370],[991267200000, 7.693110]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });