$(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: [[1030838400000,5.2403],[1030924800000,5.23391],[1031011200000,5.28134],[1031097600000,5.30105],[1031184000000,5.31598],[1031270400000,5.2856],[1031356800000,5.2856],[1031443200000,5.2856],[1031529600000,5.21922],[1031616000000,5.20149],[1031702400000,5.19563],[1031788800000,5.20019],[1031875200000,5.22844],[1031961600000,5.22844],[1032048000000,5.22844],[1032134400000,5.22844],[1032220800000,5.16084],[1032307200000,5.18294],[1032393600000,5.23037],[1032480000000,5.21758],[1032566400000,5.21758],[1032652800000,5.21758],[1032739200000,5.23943],[1032825600000,5.23783],[1032912000000,5.20745],[1032998400000,5.22078],[1033084800000,5.21172],[1033171200000,5.21172],[1033257600000,5.21172],[1033344000000,5.21172]], 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, 5.240300],[1030838400000, 5.240300],[1030924800000, 5.233910],[1031011200000, 5.281340],[1031097600000, 5.301050],[1031184000000, 5.315980],[1031270400000, 5.285600],[1031356800000, 5.285600],[1031443200000, 5.285600],[1031529600000, 5.219220],[1031616000000, 5.201490],[1031702400000, 5.195630],[1031788800000, 5.200190],[1031875200000, 5.228440],[1031961600000, 5.228440],[1032048000000, 5.228440],[1032134400000, 5.228440],[1032220800000, 5.160840],[1032307200000, 5.182940],[1032393600000, 5.230370],[1032480000000, 5.217580],[1032566400000, 5.217580],[1032652800000, 5.217580],[1032739200000, 5.239430],[1032825600000, 5.237830],[1032912000000, 5.207450],[1032998400000, 5.220780],[1033084800000, 5.211720],[1033171200000, 5.211720],[1033257600000, 5.211720],[1033344000000, 5.211720]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });