$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1420070400000,15.9901],[1420156800000,15.9901],[1420243200000,15.9901],[1420329600000,15.9901],[1420416000000,15.9901],[1420502400000,15.9901],[1420588800000,15.6469],[1420675200000,15.6469],[1420761600000,null],[1420848000000,15.4322],[1420934400000,15.4322],[1421020800000,15.4322],[1421107200000,15.4995],[1421193600000,15.4974],[1421280000000,null],[1421366400000,15.4674],[1421452800000,17.9925],[1421539200000,18.1651],[1421625600000,18.1651],[1421712000000,18.0865],[1421798400000,18.0866],[1421884800000,18.1195],[1421971200000,null],[1422057600000,18.4524],[1422144000000,18.4524],[1422230400000,18.4524],[1422316800000,18.0359],[1422403200000,17.8525],[1422489600000,17.6421],[1422576000000,17.671],[1422662400000,17.6269]], 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: [[1420070400000, 15.990113],[1420070400000, 15.990113],[1420156800000, 15.990113],[1420243200000, 15.990113],[1420329600000, 15.990113],[1420416000000, 15.990113],[1420502400000, 15.990113],[1420588800000, 15.646931],[1420675200000, 15.646931],[1420848000000, 15.432235],[1420934400000, 15.432235],[1421020800000, 15.432235],[1421107200000, 15.499487],[1421193600000, 15.497449],[1421366400000, 15.467404],[1421452800000, 17.992471],[1421539200000, 18.165094],[1421625600000, 18.165094],[1421712000000, 18.086498],[1421798400000, 18.086608],[1421884800000, 18.119528],[1422057600000, 18.452382],[1422144000000, 18.452382],[1422230400000, 18.452382],[1422316800000, 18.035904],[1422403200000, 17.852507],[1422489600000, 17.642079],[1422576000000, 17.670961],[1422662400000, 17.626851]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });