$(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: [[1133395200000,0.745574],[1133481600000,0.744007],[1133568000000,0.746114],[1133654400000,0.746114],[1133740800000,0.746114],[1133827200000,0.752766],[1133913600000,0.755608],[1134000000000,0.746095],[1134086400000,0.74963],[1134172800000,0.750779],[1134259200000,0.750779],[1134345600000,0.750779],[1134432000000,0.754889],[1134518400000,0.757309],[1134604800000,0.763439],[1134691200000,0.761291],[1134777600000,0.759417],[1134864000000,0.759417],[1134950400000,0.759417],[1135036800000,0.75501],[1135123200000,0.751559],[1135209600000,0.744811],[1135296000000,0.743244],[1135382400000,0.745896],[1135468800000,0.745896],[1135555200000,0.745896],[1135641600000,0.745896],[1135728000000,0.746478],[1135814400000,0.749481],[1135900800000,0.744917]], 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: [[1133395200000, 0.745574],[1133395200000, 0.745574],[1133481600000, 0.744007],[1133568000000, 0.746114],[1133654400000, 0.746114],[1133740800000, 0.746114],[1133827200000, 0.752766],[1133913600000, 0.755608],[1134000000000, 0.746095],[1134086400000, 0.749630],[1134172800000, 0.750779],[1134259200000, 0.750779],[1134345600000, 0.750779],[1134432000000, 0.754889],[1134518400000, 0.757309],[1134604800000, 0.763439],[1134691200000, 0.761291],[1134777600000, 0.759417],[1134864000000, 0.759417],[1134950400000, 0.759417],[1135036800000, 0.755010],[1135123200000, 0.751559],[1135209600000, 0.744811],[1135296000000, 0.743244],[1135382400000, 0.745896],[1135468800000, 0.745896],[1135555200000, 0.745896],[1135641600000, 0.745896],[1135728000000, 0.746478],[1135814400000, 0.749481],[1135900800000, 0.744917]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });