$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1096588800000,7.79683],[1096675200000,null],[1096761600000,null],[1096848000000,7.79683],[1096934400000,7.80956],[1097020800000,7.77403],[1097107200000,7.77224],[1097193600000,7.7721],[1097280000000,7.7721],[1097366400000,7.7721],[1097452800000,7.77195],[1097539200000,7.78819],[1097625600000,7.82192],[1097712000000,7.79016],[1097798400000,7.8156],[1097884800000,null],[1097971200000,7.82309],[1098057600000,7.82309],[1098144000000,7.84198],[1098230400000,7.85646],[1098316800000,7.87823],[1098403200000,7.90642],[1098489600000,7.9075],[1098576000000,7.9075],[1098662400000,7.9075],[1098748800000,7.96404],[1098835200000,7.95662],[1098921600000,7.95785],[1099008000000,7.92651],[1099094400000,7.95327],[1099180800000,7.95327]], 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, 7.796830],[1096588800000, 7.796830],[1096848000000, 7.796830],[1096934400000, 7.809560],[1097020800000, 7.774030],[1097107200000, 7.772240],[1097193600000, 7.772100],[1097280000000, 7.772100],[1097366400000, 7.772100],[1097452800000, 7.771950],[1097539200000, 7.788190],[1097625600000, 7.821920],[1097712000000, 7.790160],[1097798400000, 7.815600],[1097971200000, 7.823090],[1098057600000, 7.823090],[1098144000000, 7.841980],[1098230400000, 7.856460],[1098316800000, 7.878230],[1098403200000, 7.906420],[1098489600000, 7.907500],[1098576000000, 7.907500],[1098662400000, 7.907500],[1098748800000, 7.964040],[1098835200000, 7.956620],[1098921600000, 7.957850],[1099008000000, 7.926510],[1099094400000, 7.953270],[1099180800000, 7.953270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });