$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1096588800000,9.75662],[1096675200000,null],[1096761600000,null],[1096848000000,9.73872],[1096934400000,9.79243],[1097020800000,9.75625],[1097107200000,9.72033],[1097193600000,9.73798],[1097280000000,9.73798],[1097366400000,9.73798],[1097452800000,9.71996],[1097539200000,9.77367],[1097625600000,9.77367],[1097712000000,9.75552],[1097798400000,9.7733],[1097884800000,null],[1097971200000,9.77293],[1098057600000,9.77293],[1098144000000,9.80887],[1098230400000,9.79078],[1098316800000,9.82704],[1098403200000,9.86338],[1098489600000,9.88175],[1098576000000,9.88175],[1098662400000,9.88175],[1098748800000,9.93727],[1098835200000,9.95591],[1098921600000,9.93727],[1099008000000,9.93727],[1099094400000,9.93727],[1099180800000,9.93727]], 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, 9.756620],[1096588800000, 9.756620],[1096848000000, 9.738720],[1096934400000, 9.792430],[1097020800000, 9.756250],[1097107200000, 9.720330],[1097193600000, 9.737980],[1097280000000, 9.737980],[1097366400000, 9.737980],[1097452800000, 9.719960],[1097539200000, 9.773670],[1097625600000, 9.773670],[1097712000000, 9.755520],[1097798400000, 9.773300],[1097971200000, 9.772930],[1098057600000, 9.772930],[1098144000000, 9.808870],[1098230400000, 9.790780],[1098316800000, 9.827040],[1098403200000, 9.863380],[1098489600000, 9.881750],[1098576000000, 9.881750],[1098662400000, 9.881750],[1098748800000, 9.937270],[1098835200000, 9.955910],[1098921600000, 9.937270],[1099008000000, 9.937270],[1099094400000, 9.937270],[1099180800000, 9.937270]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });