$(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: [[1318032000000,1.37314],[1318118400000,1.37314],[1318204800000,1.37314],[1318291200000,1.38895],[1318377600000,1.39422],[1318464000000,1.41033],[1318550400000,1.4114],[1318636800000,1.42173],[1318723200000,1.42173],[1318809600000,1.42173],[1318896000000,1.42102],[1318982400000,1.40552],[1319068800000,1.42583],[1319155200000,1.42856],[1319241600000,1.42809],[1319328000000,1.42809],[1319414400000,1.42809],[1319500800000,1.4368],[1319587200000,1.44444],[1319673600000,1.44641],[1319760000000,1.46266]], 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: [[1318032000000, 1.373144],[1318032000000, 1.373144],[1318118400000, 1.373144],[1318204800000, 1.373144],[1318291200000, 1.388951],[1318377600000, 1.394223],[1318464000000, 1.410330],[1318550400000, 1.411402],[1318636800000, 1.421735],[1318723200000, 1.421735],[1318809600000, 1.421735],[1318896000000, 1.421020],[1318982400000, 1.405524],[1319068800000, 1.425830],[1319155200000, 1.428559],[1319241600000, 1.428091],[1319328000000, 1.428091],[1319414400000, 1.428091],[1319500800000, 1.436798],[1319587200000, 1.444444],[1319673600000, 1.446413],[1319760000000, 1.462658]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });