$(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: [[1078099200000,6.61867],[1078185600000,6.65385],[1078272000000,6.61002],[1078358400000,6.47173],[1078444800000,6.49785],[1078531200000,6.49785],[1078617600000,6.49785],[1078704000000,6.49785],[1078790400000,6.49785],[1078876800000,6.58792],[1078963200000,6.55475],[1079049600000,6.53184],[1079136000000,6.52064],[1079222400000,6.52064],[1079308800000,6.52064],[1079395200000,6.54356],[1079481600000,6.58181],[1079568000000,6.52905],[1079654400000,6.57849],[1079740800000,6.57849],[1079827200000,6.57849],[1079913600000,6.58328],[1080000000000,6.54225],[1080086400000,6.54225],[1080172800000,6.46551],[1080259200000,6.48736],[1080345600000,6.48736],[1080432000000,6.48736],[1080518400000,6.48736],[1080604800000,6.45805],[1080691200000,6.49482]], 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: [[1078099200000, 6.618670],[1078099200000, 6.618670],[1078185600000, 6.653850],[1078272000000, 6.610020],[1078358400000, 6.471730],[1078444800000, 6.497850],[1078531200000, 6.497850],[1078617600000, 6.497850],[1078704000000, 6.497850],[1078790400000, 6.497850],[1078876800000, 6.587920],[1078963200000, 6.554750],[1079049600000, 6.531840],[1079136000000, 6.520640],[1079222400000, 6.520640],[1079308800000, 6.520640],[1079395200000, 6.543560],[1079481600000, 6.581810],[1079568000000, 6.529050],[1079654400000, 6.578490],[1079740800000, 6.578490],[1079827200000, 6.578490],[1079913600000, 6.583280],[1080000000000, 6.542250],[1080086400000, 6.542250],[1080172800000, 6.465510],[1080259200000, 6.487360],[1080345600000, 6.487360],[1080432000000, 6.487360],[1080518400000, 6.487360],[1080604800000, 6.458050],[1080691200000, 6.494820]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });