$(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: [[1294272000000,1.35005],[1294358400000,1.34484],[1294444800000,1.34484],[1294531200000,1.34484],[1294617600000,1.34484],[1294704000000,1.33211],[1294790400000,1.33371],[1294876800000,1.33976],[1294963200000,1.34636],[1295049600000,1.35196],[1295136000000,1.35196],[1295222400000,1.35196],[1295308800000,1.3582],[1295395200000,1.35839],[1295481600000,1.37105],[1295568000000,1.35901],[1295654400000,1.36075],[1295740800000,1.36075],[1295827200000,1.36075],[1295913600000,1.367],[1296000000000,1.37533],[1296086400000,1.38026],[1296172800000,1.37281],[1296259200000,1.37221],[1296345600000,1.37221],[1296432000000,1.37221]], 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: [[1294272000000, 1.350052],[1294272000000, 1.350052],[1294358400000, 1.344837],[1294444800000, 1.344837],[1294531200000, 1.344837],[1294617600000, 1.344837],[1294704000000, 1.332113],[1294790400000, 1.333714],[1294876800000, 1.339758],[1294963200000, 1.346359],[1295049600000, 1.351956],[1295136000000, 1.351956],[1295222400000, 1.351956],[1295308800000, 1.358197],[1295395200000, 1.358388],[1295481600000, 1.371051],[1295568000000, 1.359005],[1295654400000, 1.360752],[1295740800000, 1.360752],[1295827200000, 1.360752],[1295913600000, 1.366999],[1296000000000, 1.375330],[1296086400000, 1.380257],[1296172800000, 1.372812],[1296259200000, 1.372210],[1296345600000, 1.372210],[1296432000000, 1.372210]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });