$(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: [[1333238400000,6.35984],[1333324800000,6.35984],[1333411200000,6.36651],[1333497600000,6.37873],[1333584000000,6.34302],[1333670400000,6.33531],[1333756800000,6.33531],[1333843200000,null],[1333929600000,6.33531],[1334016000000,6.33333],[1334102400000,6.3341],[1334188800000,6.34653],[1334275200000,6.36256],[1334361600000,6.40867],[1334448000000,6.40867],[1334534400000,6.40867],[1334620800000,6.40867],[1334707200000,6.38917],[1334793600000,6.38225],[1334880000000,6.37901],[1334966400000,6.3936],[1335052800000,6.3936],[1335139200000,6.3936],[1335225600000,6.39123],[1335312000000,6.40349],[1335398400000,6.4164],[1335484800000,6.4329],[1335571200000,6.4466],[1335657600000,6.4466],[1335744000000,6.4466]], 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: [[1333238400000, 6.359845],[1333238400000, 6.359845],[1333324800000, 6.359845],[1333411200000, 6.366515],[1333497600000, 6.378727],[1333584000000, 6.343020],[1333670400000, 6.335315],[1333756800000, 6.335315],[1333929600000, 6.335315],[1334016000000, 6.333332],[1334102400000, 6.334097],[1334188800000, 6.346531],[1334275200000, 6.362556],[1334361600000, 6.408667],[1334448000000, 6.408667],[1334534400000, 6.408667],[1334620800000, 6.408667],[1334707200000, 6.389168],[1334793600000, 6.382248],[1334880000000, 6.379006],[1334966400000, 6.393600],[1335052800000, 6.393600],[1335139200000, 6.393600],[1335225600000, 6.391231],[1335312000000, 6.403491],[1335398400000, 6.416397],[1335484800000, 6.432900],[1335571200000, 6.446596],[1335657600000, 6.446596],[1335744000000, 6.446596]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });