$(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: [[1185926400000,5.05],[1186012800000,5.05],[1186099200000,5.05],[1186185600000,5.05],[1186272000000,5.05],[1186358400000,5.05],[1186444800000,5.05],[1186531200000,5.05],[1186617600000,5.05],[1186704000000,5.05],[1186790400000,5.05],[1186876800000,5.05],[1186963200000,5.05],[1187049600000,5.05],[1187136000000,5.05],[1187222400000,5.05],[1187308800000,5.05],[1187395200000,5.05],[1187481600000,5.05],[1187568000000,5.05],[1187654400000,5.05],[1187740800000,5.05],[1187827200000,5.05],[1187913600000,5.05],[1188000000000,5.05],[1188086400000,5.05],[1188172800000,5.05],[1188259200000,5.05],[1188345600000,5.05],[1188432000000,5.05],[1188518400000,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: [[1185926400000, 5.050000],[1185926400000, 5.050000],[1186012800000, 5.050000],[1186099200000, 5.050000],[1186185600000, 5.050000],[1186272000000, 5.050000],[1186358400000, 5.050000],[1186444800000, 5.050000],[1186531200000, 5.050000],[1186617600000, 5.050000],[1186704000000, 5.050000],[1186790400000, 5.050000],[1186876800000, 5.050000],[1186963200000, 5.050000],[1187049600000, 5.050000],[1187136000000, 5.050000],[1187222400000, 5.050000],[1187308800000, 5.050000],[1187395200000, 5.050000],[1187481600000, 5.050000],[1187568000000, 5.050000],[1187654400000, 5.050000],[1187740800000, 5.050000],[1187827200000, 5.050000],[1187913600000, 5.050000],[1188000000000, 5.050000],[1188086400000, 5.050000],[1188172800000, 5.050000],[1188259200000, 5.050000],[1188345600000, 5.050000],[1188432000000, 5.050000],[1188518400000, 5.050000]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });