$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1301616000000,12.6206],[1301702400000,12.5855],[1301788800000,12.5855],[1301875200000,12.5855],[1301961600000,12.6163],[1302048000000,12.6074],[1302134400000,12.6499],[1302220800000,12.6433],[1302307200000,12.6857],[1302393600000,12.6857],[1302480000000,12.6857],[1302566400000,12.711],[1302652800000,12.7149],[1302739200000,12.7369],[1302825600000,12.7079],[1302912000000,12.7314],[1302998400000,12.7314],[1303084800000,12.7314],[1303171200000,12.6829],[1303257600000,12.6761],[1303344000000,12.7641],[1303430400000,12.8196],[1303516800000,12.8196],[1303603200000,12.8196],[1303689600000,12.8196],[1303776000000,12.8196],[1303862400000,12.8207],[1303948800000,12.8394],[1304035200000,12.9013],[1304121600000,12.9011]], 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, 12.620617],[1301616000000, 12.620617],[1301702400000, 12.585498],[1301788800000, 12.585498],[1301875200000, 12.585498],[1301961600000, 12.616341],[1302048000000, 12.607380],[1302134400000, 12.649911],[1302220800000, 12.643344],[1302307200000, 12.685673],[1302393600000, 12.685673],[1302480000000, 12.685673],[1302566400000, 12.711045],[1302652800000, 12.714863],[1302739200000, 12.736859],[1302825600000, 12.707912],[1302912000000, 12.731427],[1302998400000, 12.731427],[1303084800000, 12.731427],[1303171200000, 12.682862],[1303257600000, 12.676128],[1303344000000, 12.764144],[1303430400000, 12.819568],[1303516800000, 12.819568],[1303603200000, 12.819568],[1303689600000, 12.819568],[1303776000000, 12.819568],[1303862400000, 12.820723],[1303948800000, 12.839364],[1304035200000, 12.901293],[1304121600000, 12.901131]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });