$(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: [[1296518400000,1.3717],[1296604800000,1.38588],[1296691200000,1.3904],[1296777600000,1.3894],[1296864000000,1.38723],[1296950400000,1.38723],[1297036800000,1.38723],[1297123200000,1.37371],[1297209600000,1.37842],[1297296000000,1.37762],[1297382400000,1.36248],[1297468800000,1.3547],[1297555200000,1.3547],[1297641600000,1.3547],[1297728000000,1.35535],[1297814400000,1.36997],[1297900800000,1.37071],[1297987200000,1.37931],[1298073600000,1.39542],[1298160000000,1.39542],[1298246400000,1.39542],[1298332800000,1.3969],[1298419200000,1.39955],[1298505600000,1.40747],[1298592000000,1.41525],[1298678400000,1.40575],[1298764800000,1.40575],[1298851200000,1.40575]], 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: [[1296518400000, 1.371705],[1296518400000, 1.371705],[1296604800000, 1.385883],[1296691200000, 1.390402],[1296777600000, 1.389402],[1296864000000, 1.387228],[1296950400000, 1.387228],[1297036800000, 1.387228],[1297123200000, 1.373714],[1297209600000, 1.378421],[1297296000000, 1.377621],[1297382400000, 1.362475],[1297468800000, 1.354702],[1297555200000, 1.354702],[1297641600000, 1.354702],[1297728000000, 1.355346],[1297814400000, 1.369971],[1297900800000, 1.370711],[1297987200000, 1.379308],[1298073600000, 1.395417],[1298160000000, 1.395417],[1298246400000, 1.395417],[1298332800000, 1.396902],[1298419200000, 1.399547],[1298505600000, 1.407467],[1298592000000, 1.415252],[1298678400000, 1.405748],[1298764800000, 1.405748],[1298851200000, 1.405748]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });