$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1185926400000,0.4171],[1186012800000,0.417273],[1186099200000,0.417248],[1186185600000,0.417342],[1186272000000,0.417342],[1186358400000,0.417342],[1186444800000,0.417314],[1186531200000,0.417638],[1186617600000,0.417877],[1186704000000,0.418445],[1186790400000,0.41954],[1186876800000,0.41954],[1186963200000,0.41954],[1187049600000,0.420791],[1187136000000,0.422361],[1187222400000,0.422983],[1187308800000,0.425131],[1187395200000,0.425102],[1187481600000,0.425102],[1187568000000,0.425102],[1187654400000,0.425073],[1187740800000,0.425034],[1187827200000,0.4237],[1187913600000,0.422103],[1188000000000,0.422103],[1188086400000,0.422103],[1188172800000,0.422103],[1188259200000,0.4202],[1188345600000,0.417998],[1188432000000,0.418174],[1188518400000,0.418084]], 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.417100],[1185926400000, 0.417100],[1186012800000, 0.417273],[1186099200000, 0.417248],[1186185600000, 0.417342],[1186272000000, 0.417342],[1186358400000, 0.417342],[1186444800000, 0.417314],[1186531200000, 0.417638],[1186617600000, 0.417877],[1186704000000, 0.418445],[1186790400000, 0.419540],[1186876800000, 0.419540],[1186963200000, 0.419540],[1187049600000, 0.420791],[1187136000000, 0.422361],[1187222400000, 0.422983],[1187308800000, 0.425131],[1187395200000, 0.425102],[1187481600000, 0.425102],[1187568000000, 0.425102],[1187654400000, 0.425073],[1187740800000, 0.425034],[1187827200000, 0.423700],[1187913600000, 0.422103],[1188000000000, 0.422103],[1188086400000, 0.422103],[1188172800000, 0.422103],[1188259200000, 0.420200],[1188345600000, 0.417998],[1188432000000, 0.418174],[1188518400000, 0.418084]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });