$(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: [[1080777600000,9.78306],[1080864000000,9.85237],[1080950400000,9.85237],[1081036800000,9.85237],[1081123200000,9.85237],[1081209600000,9.68365],[1081296000000,9.78901],[1081382400000,9.76531],[1081468800000,9.76512],[1081555200000,9.76512],[1081641600000,9.76512],[1081728000000,9.76512],[1081814400000,9.76512],[1081900800000,9.7338],[1081987200000,9.59719],[1082073600000,9.51275],[1082160000000,9.51275],[1082246400000,9.51275],[1082332800000,9.51275],[1082419200000,9.63159],[1082505600000,9.43904],[1082592000000,9.43904],[1082678400000,9.43904],[1082764800000,9.45477],[1082851200000,9.45477],[1082937600000,9.45477],[1083024000000,9.5158],[1083110400000,9.54255],[1083196800000,9.51988],[1083283200000,9.44925]], 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: [[1080777600000, 9.783060],[1080777600000, 9.783060],[1080864000000, 9.852370],[1080950400000, 9.852370],[1081036800000, 9.852370],[1081123200000, 9.852370],[1081209600000, 9.683650],[1081296000000, 9.789010],[1081382400000, 9.765310],[1081468800000, 9.765120],[1081555200000, 9.765120],[1081641600000, 9.765120],[1081728000000, 9.765120],[1081814400000, 9.765120],[1081900800000, 9.733800],[1081987200000, 9.597190],[1082073600000, 9.512750],[1082160000000, 9.512750],[1082246400000, 9.512750],[1082332800000, 9.512750],[1082419200000, 9.631590],[1082505600000, 9.439040],[1082592000000, 9.439040],[1082678400000, 9.439040],[1082764800000, 9.454770],[1082851200000, 9.454770],[1082937600000, 9.454770],[1083024000000, 9.515800],[1083110400000, 9.542550],[1083196800000, 9.519880],[1083283200000, 9.449250]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });