$(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: [[1277942400000,0.25293],[1278028800000,0.25211],[1278115200000,0.25359],[1278201600000,0.25359],[1278288000000,0.25359],[1278374400000,0.25423],[1278460800000,0.25419],[1278547200000,0.25431],[1278633600000,0.25546],[1278720000000,0.25666],[1278806400000,0.25666],[1278892800000,0.25666],[1278979200000,0.25591],[1279065600000,0.25611],[1279152000000,0.25874],[1279238400000,0.25852],[1279324800000,0.25934],[1279411200000,0.25934],[1279497600000,0.25934],[1279584000000,0.25837],[1279670400000,0.25975],[1279756800000,0.25973],[1279843200000,0.25874],[1279929600000,0.25987],[1280016000000,0.25987],[1280102400000,0.25987],[1280188800000,0.26056],[1280275200000,0.26106],[1280361600000,0.26131],[1280448000000,0.26121],[1280534400000,0.26146]], 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: [[1277942400000, 0.252930],[1277942400000, 0.252930],[1278028800000, 0.252110],[1278115200000, 0.253590],[1278201600000, 0.253590],[1278288000000, 0.253590],[1278374400000, 0.254230],[1278460800000, 0.254190],[1278547200000, 0.254310],[1278633600000, 0.255460],[1278720000000, 0.256660],[1278806400000, 0.256660],[1278892800000, 0.256660],[1278979200000, 0.255910],[1279065600000, 0.256110],[1279152000000, 0.258740],[1279238400000, 0.258520],[1279324800000, 0.259340],[1279411200000, 0.259340],[1279497600000, 0.259340],[1279584000000, 0.258370],[1279670400000, 0.259750],[1279756800000, 0.259730],[1279843200000, 0.258740],[1279929600000, 0.259870],[1280016000000, 0.259870],[1280102400000, 0.259870],[1280188800000, 0.260560],[1280275200000, 0.261060],[1280361600000, 0.261310],[1280448000000, 0.261210],[1280534400000, 0.261460]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });