$(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: [[991353600000,0.18582],[991440000000,0.18575],[991526400000,0.18575],[991612800000,0.18575],[991699200000,0.18575],[991785600000,0.18567],[991872000000,0.18566],[991958400000,0.18567],[992044800000,0.18577],[992131200000,0.18577],[992217600000,0.18577],[992304000000,0.18571],[992390400000,0.18566],[992476800000,0.18568],[992563200000,0.18579],[992649600000,0.18586],[992736000000,0.18586],[992822400000,0.18586],[992908800000,0.18588],[992995200000,0.18545],[993081600000,0.18501],[993168000000,0.18535],[993254400000,0.18511],[993340800000,0.18511],[993427200000,0.18511],[993513600000,0.18503],[993600000000,0.185],[993686400000,0.18485],[993772800000,0.18485],[993859200000,0.18485]], 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: [[991353600000, 0.185820],[991353600000, 0.185820],[991440000000, 0.185750],[991526400000, 0.185750],[991612800000, 0.185750],[991699200000, 0.185750],[991785600000, 0.185670],[991872000000, 0.185660],[991958400000, 0.185670],[992044800000, 0.185770],[992131200000, 0.185770],[992217600000, 0.185770],[992304000000, 0.185710],[992390400000, 0.185660],[992476800000, 0.185680],[992563200000, 0.185790],[992649600000, 0.185860],[992736000000, 0.185860],[992822400000, 0.185860],[992908800000, 0.185880],[992995200000, 0.185450],[993081600000, 0.185010],[993168000000, 0.185350],[993254400000, 0.185110],[993340800000, 0.185110],[993427200000, 0.185110],[993513600000, 0.185030],[993600000000, 0.185000],[993686400000, 0.184850],[993772800000, 0.184850],[993859200000, 0.184850]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });