$(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: [[1409529600000,0.37476],[1409616000000,0.35509],[1409702400000,0.34881],[1409788800000,0.33552],[1409875200000,null],[1409961600000,0.34839],[1410048000000,0.34839],[1410134400000,0.34839],[1410220800000,0.34728],[1410307200000,0.34854],[1410393600000,0.3498],[1410480000000,0.34912],[1410566400000,0.34648],[1410652800000,0.34648],[1410739200000,0.34648],[1410825600000,0.34267],[1410912000000,0.34192],[1410998400000,0.33799],[1411084800000,0.34986],[1411171200000,null],[1411257600000,0.34966],[1411344000000,0.34966],[1411430400000,null],[1411516800000,0.35062],[1411603200000,0.33476],[1411689600000,0.3374],[1411776000000,0.33704],[1411862400000,0.33704],[1411948800000,0.33704],[1412035200000,0.33334]], 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: [[1409529600000, 0.374760],[1409529600000, 0.374760],[1409616000000, 0.355090],[1409702400000, 0.348810],[1409788800000, 0.335520],[1409961600000, 0.348390],[1410048000000, 0.348390],[1410134400000, 0.348390],[1410220800000, 0.347280],[1410307200000, 0.348540],[1410393600000, 0.349800],[1410480000000, 0.349120],[1410566400000, 0.346480],[1410652800000, 0.346480],[1410739200000, 0.346480],[1410825600000, 0.342670],[1410912000000, 0.341920],[1410998400000, 0.337990],[1411084800000, 0.349860],[1411257600000, 0.349660],[1411344000000, 0.349660],[1411516800000, 0.350620],[1411603200000, 0.334760],[1411689600000, 0.337400],[1411776000000, 0.337040],[1411862400000, 0.337040],[1411948800000, 0.337040],[1412035200000, 0.333340]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });