$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1249084800000,7.14519],[1249171200000,7.14519],[1249257600000,7.14519],[1249344000000,7.19785],[1249430400000,7.18919],[1249516800000,7.13949],[1249603200000,7.17568],[1249689600000,7.11734],[1249776000000,7.11734],[1249862400000,7.11734],[1249948800000,7.12827],[1250035200000,7.04644],[1250121600000,7.01511],[1250208000000,7.16824],[1250294400000,7.1588],[1250380800000,7.1588],[1250467200000,7.1588],[1250553600000,7.0315],[1250640000000,7.07454],[1250726400000,7.07358],[1250812800000,7.19856],[1250899200000,7.32129],[1250985600000,7.32129],[1251072000000,7.32129],[1251158400000,7.32129],[1251244800000,7.40162],[1251331200000,7.32197],[1251417600000,7.3078],[1251504000000,7.39299],[1251590400000,7.39299],[1251676800000,7.39299]], 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: [[1249084800000, 7.145193],[1249084800000, 7.145193],[1249171200000, 7.145193],[1249257600000, 7.145193],[1249344000000, 7.197853],[1249430400000, 7.189192],[1249516800000, 7.139487],[1249603200000, 7.175679],[1249689600000, 7.117340],[1249776000000, 7.117340],[1249862400000, 7.117340],[1249948800000, 7.128274],[1250035200000, 7.046438],[1250121600000, 7.015115],[1250208000000, 7.168239],[1250294400000, 7.158797],[1250380800000, 7.158797],[1250467200000, 7.158797],[1250553600000, 7.031496],[1250640000000, 7.074535],[1250726400000, 7.073576],[1250812800000, 7.198558],[1250899200000, 7.321292],[1250985600000, 7.321292],[1251072000000, 7.321292],[1251158400000, 7.321292],[1251244800000, 7.401616],[1251331200000, 7.321967],[1251417600000, 7.307799],[1251504000000, 7.392990],[1251590400000, 7.392990],[1251676800000, 7.392990]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });