$(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: 'Курс NOK, грн'}, 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: 'Курс NOK', data: [[1277942400000,1.21676],[1278028800000,1.21191],[1278115200000,1.23107],[1278201600000,1.23107],[1278288000000,1.23107],[1278374400000,1.22987],[1278460800000,1.23294],[1278547200000,1.22664],[1278633600000,1.24086],[1278720000000,1.24198],[1278806400000,1.24198],[1278892800000,1.24198],[1278979200000,1.23951],[1279065600000,1.24824],[1279152000000,1.26641],[1279238400000,1.27864],[1279324800000,1.27527],[1279411200000,1.27527],[1279497600000,1.27527],[1279584000000,1.25708],[1279670400000,1.2479],[1279756800000,1.26311],[1279843200000,1.27243],[1279929600000,1.27837],[1280016000000,1.27837],[1280102400000,1.27837],[1280188800000,1.27584],[1280275200000,1.28614],[1280361600000,1.28491],[1280448000000,1.29422],[1280534400000,1.29496]], 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, 1.216757],[1277942400000, 1.216757],[1278028800000, 1.211914],[1278115200000, 1.231067],[1278201600000, 1.231067],[1278288000000, 1.231067],[1278374400000, 1.229870],[1278460800000, 1.232940],[1278547200000, 1.226636],[1278633600000, 1.240856],[1278720000000, 1.241984],[1278806400000, 1.241984],[1278892800000, 1.241984],[1278979200000, 1.239509],[1279065600000, 1.248244],[1279152000000, 1.266405],[1279238400000, 1.278641],[1279324800000, 1.275269],[1279411200000, 1.275269],[1279497600000, 1.275269],[1279584000000, 1.257077],[1279670400000, 1.247901],[1279756800000, 1.263115],[1279843200000, 1.272432],[1279929600000, 1.278367],[1280016000000, 1.278367],[1280102400000, 1.278367],[1280188800000, 1.275841],[1280275200000, 1.286144],[1280361600000, 1.284907],[1280448000000, 1.294225],[1280534400000, 1.294957]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });