$(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: [[1380585600000,1.33036],[1380672000000,1.3324],[1380758400000,1.3284],[1380844800000,1.33995],[1380931200000,1.33895],[1381017600000,1.33895],[1381104000000,1.33895],[1381190400000,1.33482],[1381276800000,1.34265],[1381363200000,1.332],[1381449600000,1.332],[1381536000000,1.33399],[1381622400000,1.33399],[1381708800000,1.33399],[1381795200000,1.33313],[1381881600000,1.32852],[1381968000000,1.33218],[1382054400000,1.34566],[1382140800000,1.35057],[1382227200000,1.35057],[1382313600000,1.35057],[1382400000000,1.34998],[1382486400000,1.34378],[1382572800000,1.35103],[1382659200000,1.35874],[1382745600000,1.35332],[1382832000000,1.35332],[1382918400000,1.35332],[1383004800000,1.35517],[1383091200000,1.35535],[1383177600000,1.36069]], 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: [[1380585600000, 1.330361],[1380585600000, 1.330361],[1380672000000, 1.332396],[1380758400000, 1.328399],[1380844800000, 1.339954],[1380931200000, 1.338947],[1381017600000, 1.338947],[1381104000000, 1.338947],[1381190400000, 1.334822],[1381276800000, 1.342650],[1381363200000, 1.332002],[1381449600000, 1.332002],[1381536000000, 1.333986],[1381622400000, 1.333986],[1381708800000, 1.333986],[1381795200000, 1.333133],[1381881600000, 1.328524],[1381968000000, 1.332183],[1382054400000, 1.345661],[1382140800000, 1.350574],[1382227200000, 1.350574],[1382313600000, 1.350574],[1382400000000, 1.349979],[1382486400000, 1.343779],[1382572800000, 1.351029],[1382659200000, 1.358741],[1382745600000, 1.353319],[1382832000000, 1.353319],[1382918400000, 1.353319],[1383004800000, 1.355172],[1383091200000, 1.355350],[1383177600000, 1.360690]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });