$(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: [[1133395200000,5.05],[1133481600000,5.05],[1133568000000,5.05],[1133654400000,5.05],[1133740800000,5.05],[1133827200000,5.05],[1133913600000,5.05],[1134000000000,5.05],[1134086400000,5.05],[1134172800000,5.05],[1134259200000,5.05],[1134345600000,5.05],[1134432000000,5.05],[1134518400000,5.05],[1134604800000,5.05],[1134691200000,5.05],[1134777600000,5.05],[1134864000000,5.05],[1134950400000,5.05],[1135036800000,5.05],[1135123200000,5.05],[1135209600000,5.05],[1135296000000,5.05],[1135382400000,5.05],[1135468800000,5.05],[1135555200000,5.05],[1135641600000,5.05],[1135728000000,5.05],[1135814400000,5.05],[1135900800000,5.05]], 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, 5.050000],[1133395200000, 5.050000],[1133481600000, 5.050000],[1133568000000, 5.050000],[1133654400000, 5.050000],[1133740800000, 5.050000],[1133827200000, 5.050000],[1133913600000, 5.050000],[1134000000000, 5.050000],[1134086400000, 5.050000],[1134172800000, 5.050000],[1134259200000, 5.050000],[1134345600000, 5.050000],[1134432000000, 5.050000],[1134518400000, 5.050000],[1134604800000, 5.050000],[1134691200000, 5.050000],[1134777600000, 5.050000],[1134864000000, 5.050000],[1134950400000, 5.050000],[1135036800000, 5.050000],[1135123200000, 5.050000],[1135209600000, 5.050000],[1135296000000, 5.050000],[1135382400000, 5.050000],[1135468800000, 5.050000],[1135555200000, 5.050000],[1135641600000, 5.050000],[1135728000000, 5.050000],[1135814400000, 5.050000],[1135900800000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });