$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1096588800000,4.24259],[1096675200000,null],[1096761600000,null],[1096848000000,4.2519],[1096934400000,4.20804],[1097020800000,4.20437],[1097107200000,4.1938],[1097193600000,4.20237],[1097280000000,4.20237],[1097366400000,4.20237],[1097452800000,4.2087],[1097539200000,4.24404],[1097625600000,4.21854],[1097712000000,4.21093],[1097798400000,4.25163],[1097884800000,null],[1097971200000,4.27387],[1098057600000,4.27387],[1098144000000,4.30338],[1098230400000,4.31461],[1098316800000,4.34565],[1098403200000,4.35364],[1098489600000,4.34827],[1098576000000,4.34827],[1098662400000,4.34827],[1098748800000,4.42912],[1098835200000,4.42433],[1098921600000,4.43057],[1099008000000,4.40395],[1099094400000,4.41786],[1099180800000,4.41786]], 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, 4.242590],[1096588800000, 4.242590],[1096848000000, 4.251900],[1096934400000, 4.208040],[1097020800000, 4.204370],[1097107200000, 4.193800],[1097193600000, 4.202370],[1097280000000, 4.202370],[1097366400000, 4.202370],[1097452800000, 4.208700],[1097539200000, 4.244040],[1097625600000, 4.218540],[1097712000000, 4.210930],[1097798400000, 4.251630],[1097971200000, 4.273870],[1098057600000, 4.273870],[1098144000000, 4.303380],[1098230400000, 4.314610],[1098316800000, 4.345650],[1098403200000, 4.353640],[1098489600000, 4.348270],[1098576000000, 4.348270],[1098662400000, 4.348270],[1098748800000, 4.429120],[1098835200000, 4.424330],[1098921600000, 4.430570],[1099008000000, 4.403950],[1099094400000, 4.417860],[1099180800000, 4.417860]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });