$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1249084800000,0.24714],[1249171200000,0.24714],[1249257600000,0.24714],[1249344000000,0.24603],[1249430400000,0.2474],[1249516800000,0.24678],[1249603200000,0.24688],[1249689600000,0.2442],[1249776000000,0.2442],[1249862400000,0.2442],[1249948800000,0.2436],[1250035200000,0.24343],[1250121600000,0.23673],[1250208000000,0.24106],[1250294400000,0.24485],[1250380800000,0.24485],[1250467200000,0.24485],[1250553600000,0.24175],[1250640000000,0.2453],[1250726400000,0.24587],[1250812800000,0.2495],[1250899200000,0.24856],[1250985600000,0.24856],[1251072000000,0.24856],[1251158400000,0.24856],[1251244800000,0.25245],[1251331200000,0.25442],[1251417600000,0.25249],[1251504000000,0.25307],[1251590400000,0.25307],[1251676800000,0.25307]], 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, 0.247140],[1249084800000, 0.247140],[1249171200000, 0.247140],[1249257600000, 0.247140],[1249344000000, 0.246030],[1249430400000, 0.247400],[1249516800000, 0.246780],[1249603200000, 0.246880],[1249689600000, 0.244200],[1249776000000, 0.244200],[1249862400000, 0.244200],[1249948800000, 0.243600],[1250035200000, 0.243430],[1250121600000, 0.236730],[1250208000000, 0.241060],[1250294400000, 0.244850],[1250380800000, 0.244850],[1250467200000, 0.244850],[1250553600000, 0.241750],[1250640000000, 0.245300],[1250726400000, 0.245870],[1250812800000, 0.249500],[1250899200000, 0.248560],[1250985600000, 0.248560],[1251072000000, 0.248560],[1251158400000, 0.248560],[1251244800000, 0.252450],[1251331200000, 0.254420],[1251417600000, 0.252490],[1251504000000, 0.253070],[1251590400000, 0.253070],[1251676800000, 0.253070]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });