$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1296518400000,7.9415],[1296604800000,7.9415],[1296691200000,7.9417],[1296777600000,7.9437],[1296864000000,7.9457],[1296950400000,7.9457],[1297036800000,7.9457],[1297123200000,7.945],[1297209600000,7.945],[1297296000000,7.943],[1297382400000,7.9441],[1297468800000,7.9435],[1297555200000,7.9435],[1297641600000,7.9435],[1297728000000,7.9435],[1297814400000,7.9435],[1297900800000,7.9417],[1297987200000,7.9417],[1298073600000,7.9417],[1298160000000,7.9417],[1298246400000,7.9417],[1298332800000,7.9401],[1298419200000,7.9378],[1298505600000,7.9327],[1298592000000,7.9317],[1298678400000,7.9307],[1298764800000,7.9307],[1298851200000,7.9307]], 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, 7.941500],[1296518400000, 7.941500],[1296604800000, 7.941500],[1296691200000, 7.941700],[1296777600000, 7.943700],[1296864000000, 7.945700],[1296950400000, 7.945700],[1297036800000, 7.945700],[1297123200000, 7.945000],[1297209600000, 7.945000],[1297296000000, 7.943000],[1297382400000, 7.944100],[1297468800000, 7.943500],[1297555200000, 7.943500],[1297641600000, 7.943500],[1297728000000, 7.943500],[1297814400000, 7.943500],[1297900800000, 7.941700],[1297987200000, 7.941700],[1298073600000, 7.941700],[1298160000000, 7.941700],[1298246400000, 7.941700],[1298332800000, 7.940100],[1298419200000, 7.937800],[1298505600000, 7.932700],[1298592000000, 7.931700],[1298678400000, 7.930700],[1298764800000, 7.930700],[1298851200000, 7.930700]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });