$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1157068800000,6.48975],[1157155200000,6.47258],[1157241600000,6.47258],[1157328000000,6.47258],[1157414400000,6.49026],[1157500800000,6.46905],[1157587200000,6.46047],[1157673600000,6.42915],[1157760000000,6.42007],[1157846400000,6.42007],[1157932800000,6.42007],[1158019200000,6.42007],[1158105600000,6.41805],[1158192000000,6.40189],[1158278400000,6.42511],[1158364800000,6.40088],[1158451200000,6.40088],[1158537600000,6.40088],[1158624000000,6.39583],[1158710400000,6.39027],[1158796800000,6.40138],[1158883200000,6.42915],[1158969600000,6.47258],[1159056000000,6.47258],[1159142400000,6.47258],[1159228800000,6.44784],[1159315200000,6.41097],[1159401600000,6.40542],[1159488000000,6.42007],[1159574400000,6.3933]], 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: [[1157068800000, 6.489755],[1157068800000, 6.489755],[1157155200000, 6.472585],[1157241600000, 6.472585],[1157328000000, 6.472585],[1157414400000, 6.490260],[1157500800000, 6.469050],[1157587200000, 6.460465],[1157673600000, 6.429155],[1157760000000, 6.420065],[1157846400000, 6.420065],[1157932800000, 6.420065],[1158019200000, 6.420065],[1158105600000, 6.418045],[1158192000000, 6.401885],[1158278400000, 6.425115],[1158364800000, 6.400875],[1158451200000, 6.400875],[1158537600000, 6.400875],[1158624000000, 6.395825],[1158710400000, 6.390270],[1158796800000, 6.401380],[1158883200000, 6.429155],[1158969600000, 6.472585],[1159056000000, 6.472585],[1159142400000, 6.472585],[1159228800000, 6.447840],[1159315200000, 6.410975],[1159401600000, 6.405420],[1159488000000, 6.420065],[1159574400000, 6.393300]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });