$(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: [[1112313600000,4.42062],[1112400000000,4.40724],[1112486400000,4.40724],[1112572800000,4.40724],[1112659200000,4.37856],[1112745600000,4.35207],[1112832000000,4.37429],[1112918400000,4.39859],[1113004800000,4.35705],[1113091200000,4.35705],[1113177600000,4.35705],[1113264000000,4.41244],[1113350400000,4.41368],[1113436800000,4.38584],[1113523200000,4.33408],[1113609600000,4.33711],[1113696000000,4.33711],[1113782400000,4.33711],[1113868800000,4.37372],[1113955200000,4.36565],[1114041600000,4.26797],[1114128000000,4.27451],[1114214400000,4.27851],[1114300800000,4.27851],[1114387200000,4.27851],[1114473600000,4.24055],[1114560000000,4.25179],[1114646400000,4.22742],[1114732800000,4.23266],[1114819200000,4.25607]], 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: [[1112313600000, 4.420619],[1112313600000, 4.420619],[1112400000000, 4.407245],[1112486400000, 4.407245],[1112572800000, 4.407245],[1112659200000, 4.378561],[1112745600000, 4.352070],[1112832000000, 4.374291],[1112918400000, 4.398590],[1113004800000, 4.357054],[1113091200000, 4.357054],[1113177600000, 4.357054],[1113264000000, 4.412435],[1113350400000, 4.413676],[1113436800000, 4.385843],[1113523200000, 4.334079],[1113609600000, 4.337109],[1113696000000, 4.337109],[1113782400000, 4.337109],[1113868800000, 4.373723],[1113955200000, 4.365647],[1114041600000, 4.267970],[1114128000000, 4.274512],[1114214400000, 4.278513],[1114300800000, 4.278513],[1114387200000, 4.278513],[1114473600000, 4.240548],[1114560000000, 4.251787],[1114646400000, 4.227420],[1114732800000, 4.232659],[1114819200000, 4.256072]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });