$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1228089600000,0.662623],[1228176000000,0.687762],[1228262400000,0.696594],[1228348800000,0.709846],[1228435200000,0.707909],[1228521600000,0.707816],[1228608000000,0.707816],[1228694400000,0.707816],[1228780800000,0.711795],[1228867200000,0.715079],[1228953600000,0.719423],[1229040000000,0.72073],[1229126400000,0.719529],[1229212800000,0.719529],[1229299200000,0.719529],[1229385600000,0.736941],[1229472000000,0.745307],[1229558400000,0.757827],[1229644800000,0.759044],[1229731200000,0.758401],[1229817600000,0.758401],[1229904000000,0.758401],[1229990400000,0.75781],[1230076800000,0.748995],[1230163200000,0.748563],[1230249600000,0.747931],[1230336000000,0.739702],[1230422400000,0.739702],[1230508800000,0.739702],[1230595200000,0.740107],[1230681600000,0.740178]], 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: [[1228089600000, 0.662623],[1228089600000, 0.662623],[1228176000000, 0.687762],[1228262400000, 0.696594],[1228348800000, 0.709846],[1228435200000, 0.707909],[1228521600000, 0.707816],[1228608000000, 0.707816],[1228694400000, 0.707816],[1228780800000, 0.711795],[1228867200000, 0.715079],[1228953600000, 0.719423],[1229040000000, 0.720730],[1229126400000, 0.719529],[1229212800000, 0.719529],[1229299200000, 0.719529],[1229385600000, 0.736941],[1229472000000, 0.745307],[1229558400000, 0.757827],[1229644800000, 0.759044],[1229731200000, 0.758401],[1229817600000, 0.758401],[1229904000000, 0.758401],[1229990400000, 0.757810],[1230076800000, 0.748995],[1230163200000, 0.748563],[1230249600000, 0.747931],[1230336000000, 0.739702],[1230422400000, 0.739702],[1230508800000, 0.739702],[1230595200000, 0.740107],[1230681600000, 0.740178]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });