$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1185926400000,0.19769],[1186012800000,0.19726],[1186099200000,0.19731],[1186185600000,0.19761],[1186272000000,0.19761],[1186358400000,0.19761],[1186444800000,0.19841],[1186531200000,0.19827],[1186617600000,0.19817],[1186704000000,0.19926],[1186790400000,0.19798],[1186876800000,0.19798],[1186963200000,0.19798],[1187049600000,0.1983],[1187136000000,0.19779],[1187222400000,0.19698],[1187308800000,0.19621],[1187395200000,0.19587],[1187481600000,0.19587],[1187568000000,0.19587],[1187654400000,0.19619],[1187740800000,0.19541],[1187827200000,0.19543],[1187913600000,0.19642],[1188000000000,0.19642],[1188086400000,0.19642],[1188172800000,0.19642],[1188259200000,0.19685],[1188345600000,0.19669],[1188432000000,0.19602],[1188518400000,0.19689]], 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, 0.197690],[1185926400000, 0.197690],[1186012800000, 0.197260],[1186099200000, 0.197310],[1186185600000, 0.197610],[1186272000000, 0.197610],[1186358400000, 0.197610],[1186444800000, 0.198410],[1186531200000, 0.198270],[1186617600000, 0.198170],[1186704000000, 0.199260],[1186790400000, 0.197980],[1186876800000, 0.197980],[1186963200000, 0.197980],[1187049600000, 0.198300],[1187136000000, 0.197790],[1187222400000, 0.196980],[1187308800000, 0.196210],[1187395200000, 0.195870],[1187481600000, 0.195870],[1187568000000, 0.195870],[1187654400000, 0.196190],[1187740800000, 0.195410],[1187827200000, 0.195430],[1187913600000, 0.196420],[1188000000000, 0.196420],[1188086400000, 0.196420],[1188172800000, 0.196420],[1188259200000, 0.196850],[1188345600000, 0.196690],[1188432000000, 0.196020],[1188518400000, 0.196890]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });