$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1233446400000,11.4878],[1233532800000,11.4878],[1233619200000,11.4799],[1233705600000,11.5002],[1233792000000,11.5179],[1233878400000,11.5128],[1233964800000,11.4804],[1234051200000,11.4804],[1234137600000,11.4804],[1234224000000,11.5386],[1234310400000,11.543],[1234396800000,11.5238],[1234483200000,11.4751],[1234569600000,null],[1234656000000,null],[1234742400000,11.4829],[1234828800000,11.4829],[1234915200000,11.3834],[1235001600000,11.3613],[1235088000000,11.381],[1235174400000,11.3594],[1235260800000,11.3594],[1235347200000,11.3594],[1235433600000,11.4288],[1235520000000,11.392],[1235606400000,11.3659],[1235692800000,11.3398],[1235779200000,11.2987]], 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: [[1233446400000, 11.487805],[1233446400000, 11.487805],[1233532800000, 11.487805],[1233619200000, 11.479909],[1233705600000, 11.500210],[1233792000000, 11.517946],[1233878400000, 11.512762],[1233964800000, 11.480406],[1234051200000, 11.480406],[1234137600000, 11.480406],[1234224000000, 11.538623],[1234310400000, 11.542965],[1234396800000, 11.523789],[1234483200000, 11.475068],[1234742400000, 11.482923],[1234828800000, 11.482923],[1234915200000, 11.383426],[1235001600000, 11.361339],[1235088000000, 11.381037],[1235174400000, 11.359429],[1235260800000, 11.359429],[1235347200000, 11.359429],[1235433600000, 11.428792],[1235520000000, 11.391982],[1235606400000, 11.365884],[1235692800000, 11.339755],[1235779200000, 11.298705]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });