$(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: [[1096588800000,0.18163],[1096675200000,null],[1096761600000,null],[1096848000000,0.18166],[1096934400000,0.18166],[1097020800000,0.18164],[1097107200000,0.18162],[1097193600000,0.18163],[1097280000000,0.18163],[1097366400000,0.18163],[1097452800000,0.18161],[1097539200000,0.1822],[1097625600000,0.18228],[1097712000000,0.18225],[1097798400000,0.18227],[1097884800000,null],[1097971200000,0.18227],[1098057600000,0.18227],[1098144000000,0.18224],[1098230400000,0.18225],[1098316800000,0.18226],[1098403200000,0.18226],[1098489600000,0.18299],[1098576000000,0.18299],[1098662400000,0.18299],[1098748800000,0.18382],[1098835200000,0.18444],[1098921600000,0.18446],[1099008000000,0.18439],[1099094400000,0.18447],[1099180800000,0.18447]], 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: [[1096588800000, 0.181630],[1096588800000, 0.181630],[1096848000000, 0.181660],[1096934400000, 0.181660],[1097020800000, 0.181640],[1097107200000, 0.181620],[1097193600000, 0.181630],[1097280000000, 0.181630],[1097366400000, 0.181630],[1097452800000, 0.181610],[1097539200000, 0.182200],[1097625600000, 0.182280],[1097712000000, 0.182250],[1097798400000, 0.182270],[1097971200000, 0.182270],[1098057600000, 0.182270],[1098144000000, 0.182240],[1098230400000, 0.182250],[1098316800000, 0.182260],[1098403200000, 0.182260],[1098489600000, 0.182990],[1098576000000, 0.182990],[1098662400000, 0.182990],[1098748800000, 0.183820],[1098835200000, 0.184440],[1098921600000, 0.184460],[1099008000000, 0.184390],[1099094400000, 0.184470],[1099180800000, 0.184470]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });