$(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: [[1122854400000,3.91296],[1122940800000,3.95779],[1123027200000,3.9635],[1123113600000,3.98815],[1123200000000,3.99531],[1123286400000,null],[1123372800000,null],[1123459200000,null],[1123545600000,null],[1123632000000,4.01371],[1123718400000,4.01541],[1123804800000,4.032],[1123891200000,4.04995],[1123977600000,4.04995],[1124064000000,4.04995],[1124150400000,4.02815],[1124236800000,4.007],[1124323200000,4.00974],[1124409600000,3.9886],[1124496000000,3.97237],[1124582400000,3.97237],[1124668800000,3.97237],[1124755200000,3.9816],[1124841600000,3.97687],[1124928000000,3.97687],[1125014400000,4.00398],[1125100800000,4.01825],[1125187200000,4.01825],[1125273600000,4.01825],[1125360000000,4.01601],[1125446400000,3.96558]], 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: [[1122854400000, 3.912965],[1122854400000, 3.912965],[1122940800000, 3.957793],[1123027200000, 3.963501],[1123113600000, 3.988155],[1123200000000, 3.995309],[1123632000000, 4.013711],[1123718400000, 4.015409],[1123804800000, 4.032004],[1123891200000, 4.049948],[1123977600000, 4.049948],[1124064000000, 4.049948],[1124150400000, 4.028151],[1124236800000, 4.007002],[1124323200000, 4.009738],[1124409600000, 3.988595],[1124496000000, 3.972375],[1124582400000, 3.972375],[1124668800000, 3.972375],[1124755200000, 3.981599],[1124841600000, 3.976867],[1124928000000, 3.976867],[1125014400000, 4.003980],[1125100800000, 4.018255],[1125187200000, 4.018255],[1125273600000, 4.018255],[1125360000000, 4.016013],[1125446400000, 3.965578]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });