$(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: [[1030838400000,8.24984],[1030924800000,8.25147],[1031011200000,8.30007],[1031097600000,8.34286],[1031184000000,8.36635],[1031270400000,8.35602],[1031356800000,8.35602],[1031443200000,8.35602],[1031529600000,8.30161],[1031616000000,8.28132],[1031702400000,8.29443],[1031788800000,8.28847],[1031875200000,8.31759],[1031961600000,8.31759],[1032048000000,8.31759],[1032134400000,8.31759],[1032220800000,8.21791],[1032307200000,8.20605],[1032393600000,8.28377],[1032480000000,8.23872],[1032566400000,8.23872],[1032652800000,8.23872],[1032739200000,8.29155],[1032825600000,8.29953],[1032912000000,8.30403],[1032998400000,8.32129],[1033084800000,8.29627],[1033171200000,8.29627],[1033257600000,8.29627],[1033344000000,8.29627]], 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: [[1030838400000, 8.249840],[1030838400000, 8.249840],[1030924800000, 8.251470],[1031011200000, 8.300070],[1031097600000, 8.342860],[1031184000000, 8.366350],[1031270400000, 8.356020],[1031356800000, 8.356020],[1031443200000, 8.356020],[1031529600000, 8.301610],[1031616000000, 8.281320],[1031702400000, 8.294430],[1031788800000, 8.288470],[1031875200000, 8.317590],[1031961600000, 8.317590],[1032048000000, 8.317590],[1032134400000, 8.317590],[1032220800000, 8.217910],[1032307200000, 8.206050],[1032393600000, 8.283770],[1032480000000, 8.238720],[1032566400000, 8.238720],[1032652800000, 8.238720],[1032739200000, 8.291550],[1032825600000, 8.299530],[1032912000000, 8.304030],[1032998400000, 8.321290],[1033084800000, 8.296270],[1033171200000, 8.296270],[1033257600000, 8.296270],[1033344000000, 8.296270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });