$(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: 'Курс SGD, грн'}, 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: 'Курс SGD', data: [[1217548800000,3.54205],[1217635200000,3.53846],[1217721600000,3.53846],[1217808000000,3.53846],[1217894400000,3.52919],[1217980800000,3.51595],[1218067200000,3.51078],[1218153600000,3.49613],[1218240000000,null],[1218326400000,null],[1218412800000,3.45426],[1218499200000,3.44283],[1218585600000,3.43423],[1218672000000,3.44896],[1218758400000,3.44117],[1218844800000,3.42275],[1218931200000,3.42275],[1219017600000,3.42275],[1219104000000,3.426],[1219190400000,3.41481],[1219276800000,3.4264],[1219363200000,3.43248],[1219449600000,3.43466],[1219536000000,3.43466],[1219622400000,3.43466],[1219708800000,3.43466],[1219795200000,3.40182],[1219881600000,3.42146],[1219968000000,3.4219],[1220054400000,3.42554],[1220140800000,3.42554]], 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, 3.542046],[1217548800000, 3.542046],[1217635200000, 3.538457],[1217721600000, 3.538457],[1217808000000, 3.538457],[1217894400000, 3.529192],[1217980800000, 3.515946],[1218067200000, 3.510777],[1218153600000, 3.496128],[1218412800000, 3.454265],[1218499200000, 3.442826],[1218585600000, 3.434231],[1218672000000, 3.448958],[1218758400000, 3.441170],[1218844800000, 3.422753],[1218931200000, 3.422753],[1219017600000, 3.422753],[1219104000000, 3.426005],[1219190400000, 3.414810],[1219276800000, 3.426403],[1219363200000, 3.432483],[1219449600000, 3.434659],[1219536000000, 3.434659],[1219622400000, 3.434659],[1219708800000, 3.434659],[1219795200000, 3.401824],[1219881600000, 3.421462],[1219968000000, 3.421898],[1220054400000, 3.425538],[1220140800000, 3.425538]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });