$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1217548800000,7.56369],[1217635200000,7.54576],[1217721600000,7.54576],[1217808000000,7.54576],[1217894400000,7.54188],[1217980800000,7.50268],[1218067200000,7.49832],[1218153600000,7.4957],[1218240000000,null],[1218326400000,null],[1218412800000,7.30335],[1218499200000,7.27331],[1218585600000,7.22185],[1218672000000,7.21901],[1218758400000,7.22095],[1218844800000,7.13473],[1218931200000,7.13473],[1219017600000,7.13473],[1219104000000,7.12129],[1219190400000,7.10895],[1219276800000,7.13685],[1219363200000,7.17561],[1219449600000,7.17225],[1219536000000,7.17225],[1219622400000,7.17225],[1219708800000,7.17225],[1219795200000,7.07375],[1219881600000,7.15564],[1219968000000,7.15758],[1220054400000,7.14088],[1220140800000,7.14088]], 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: [[1217548800000, 7.563686],[1217548800000, 7.563686],[1217635200000, 7.545759],[1217721600000, 7.545759],[1217808000000, 7.545759],[1217894400000, 7.541883],[1217980800000, 7.502677],[1218067200000, 7.498317],[1218153600000, 7.495699],[1218412800000, 7.303353],[1218499200000, 7.273314],[1218585600000, 7.221845],[1218672000000, 7.219013],[1218758400000, 7.220951],[1218844800000, 7.134728],[1218931200000, 7.134728],[1219017600000, 7.134728],[1219104000000, 7.121294],[1219190400000, 7.108952],[1219276800000, 7.136855],[1219363200000, 7.175605],[1219449600000, 7.172255],[1219536000000, 7.172255],[1219622400000, 7.172255],[1219708800000, 7.172255],[1219795200000, 7.073753],[1219881600000, 7.155645],[1219968000000, 7.157583],[1220054400000, 7.140876],[1220140800000, 7.140876]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });