$(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: 'Курс LTL, грн'}, 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: 'Курс LTL', data: [[1301616000000,3.27525],[1301702400000,3.26003],[1301788800000,3.26003],[1301875200000,3.26003],[1301961600000,3.28384],[1302048000000,3.26772],[1302134400000,3.29863],[1302220800000,3.29471],[1302307200000,3.32193],[1302393600000,3.32193],[1302480000000,3.32193],[1302566400000,3.32917],[1302652800000,3.33898],[1302739200000,3.34508],[1302825600000,3.32297],[1302912000000,3.33428],[1302998400000,3.33428],[1303084800000,3.33428],[1303171200000,3.29473],[1303257600000,3.29939],[1303344000000,3.34852],[1303430400000,3.36444],[1303516800000,3.36444],[1303603200000,3.36444],[1303689600000,3.36444],[1303776000000,3.36444],[1303862400000,3.37205],[1303948800000,3.38382],[1304035200000,3.41289],[1304121600000,3.42807]], 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: [[1301616000000, 3.275247],[1301616000000, 3.275247],[1301702400000, 3.260031],[1301788800000, 3.260031],[1301875200000, 3.260031],[1301961600000, 3.283844],[1302048000000, 3.267723],[1302134400000, 3.298633],[1302220800000, 3.294712],[1302307200000, 3.321931],[1302393600000, 3.321931],[1302480000000, 3.321931],[1302566400000, 3.329167],[1302652800000, 3.338979],[1302739200000, 3.345084],[1302825600000, 3.322974],[1302912000000, 3.334281],[1302998400000, 3.334281],[1303084800000, 3.334281],[1303171200000, 3.294727],[1303257600000, 3.299385],[1303344000000, 3.348522],[1303430400000, 3.364440],[1303516800000, 3.364440],[1303603200000, 3.364440],[1303689600000, 3.364440],[1303776000000, 3.364440],[1303862400000, 3.372053],[1303948800000, 3.383819],[1304035200000, 3.412886],[1304121600000, 3.428069]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });