$(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: [[1304208000000,0.28962],[1304294400000,0.28962],[1304380800000,0.28962],[1304467200000,0.28962],[1304553600000,0.29114],[1304640000000,0.29228],[1304726400000,null],[1304812800000,null],[1304899200000,null],[1304985600000,null],[1305072000000,null],[1305158400000,null],[1305244800000,null],[1305331200000,null],[1305417600000,null],[1305504000000,null],[1305590400000,null],[1305676800000,0.28375]], 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: [[1304208000000, 0.289620],[1304208000000, 0.289620],[1304294400000, 0.289620],[1304380800000, 0.289620],[1304467200000, 0.289620],[1304553600000, 0.291140],[1304640000000, 0.292280],[1305676800000, 0.283750]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });