$(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: [[1294272000000,7.959],[1294358400000,7.959],[1294444800000,7.959],[1294531200000,7.959],[1294617600000,7.959],[1294704000000,7.9583],[1294790400000,7.9582],[1294876800000,7.9582],[1294963200000,7.9533],[1295049600000,7.9503],[1295136000000,7.9503],[1295222400000,7.9503],[1295308800000,7.9445],[1295395200000,7.9445],[1295481600000,7.9445],[1295568000000,7.9435],[1295654400000,7.9425],[1295740800000,7.9425],[1295827200000,7.9425],[1295913600000,7.9405],[1296000000000,7.9388],[1296086400000,7.9364],[1296172800000,7.93],[1296259200000,7.94],[1296345600000,7.94],[1296432000000,7.94]], 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, 7.959000],[1294272000000, 7.959000],[1294358400000, 7.959000],[1294444800000, 7.959000],[1294531200000, 7.959000],[1294617600000, 7.959000],[1294704000000, 7.958300],[1294790400000, 7.958200],[1294876800000, 7.958200],[1294963200000, 7.953300],[1295049600000, 7.950300],[1295136000000, 7.950300],[1295222400000, 7.950300],[1295308800000, 7.944500],[1295395200000, 7.944500],[1295481600000, 7.944500],[1295568000000, 7.943500],[1295654400000, 7.942500],[1295740800000, 7.942500],[1295827200000, 7.942500],[1295913600000, 7.940500],[1296000000000, 7.938800],[1296086400000, 7.936400],[1296172800000, 7.930000],[1296259200000, 7.940000],[1296345600000, 7.940000],[1296432000000, 7.940000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });