$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1296518400000,4.9488],[1296604800000,4.99407],[1296691200000,5.02288],[1296777600000,4.98909],[1296864000000,4.98288],[1296950400000,4.98288],[1297036800000,4.98288],[1297123200000,5.03477],[1297209600000,5.0365],[1297296000000,5.00684],[1297382400000,4.96424],[1297468800000,4.97928],[1297555200000,4.97928],[1297641600000,4.97928],[1297728000000,4.97487],[1297814400000,4.99055],[1297900800000,5.00781],[1297987200000,5.03457],[1298073600000,5.03145],[1298160000000,5.03145],[1298246400000,5.03145],[1298332800000,5.02223],[1298419200000,4.97095],[1298505600000,4.9787],[1298592000000,4.93599],[1298678400000,4.96666],[1298764800000,4.96666],[1298851200000,4.96666]], 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, 4.948799],[1296518400000, 4.948799],[1296604800000, 4.994072],[1296691200000, 5.022878],[1296777600000, 4.989086],[1296864000000, 4.982878],[1296950400000, 4.982878],[1297036800000, 4.982878],[1297123200000, 5.034768],[1297209600000, 5.036500],[1297296000000, 5.006842],[1297382400000, 4.964241],[1297468800000, 4.979277],[1297555200000, 4.979277],[1297641600000, 4.979277],[1297728000000, 4.974867],[1297814400000, 4.990545],[1297900800000, 5.007812],[1297987200000, 5.034570],[1298073600000, 5.031454],[1298160000000, 5.031454],[1298246400000, 5.031454],[1298332800000, 5.022226],[1298419200000, 4.970945],[1298505600000, 4.978696],[1298592000000, 4.935989],[1298678400000, 4.966657],[1298764800000, 4.966657],[1298851200000, 4.966657]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });