$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1538352000000,7.65074],[1538438400000,7.6511],[1538524800000,7.60698],[1538611200000,7.61337],[1538697600000,7.52408],[1538784000000,7.50712],[1538870400000,7.50712],[1538956800000,7.50712],[1539043200000,7.48342],[1539129600000,7.44088],[1539216000000,7.47246],[1539302400000,7.5039],[1539388800000,7.52843],[1539475200000,7.52843],[1539561600000,7.52843],[1539648000000,7.52843],[1539734400000,7.54547],[1539820800000,7.49608],[1539907200000,7.50335],[1539993600000,7.51441],[1540080000000,7.51441],[1540166400000,7.51441],[1540252800000,7.52258],[1540339200000,7.52092],[1540425600000,7.46333],[1540512000000,7.50636],[1540598400000,7.42705],[1540684800000,7.42705],[1540771200000,7.42705],[1540857600000,7.43303],[1540944000000,7.39571]], 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: [[1538352000000, 7.650739],[1538352000000, 7.650739],[1538438400000, 7.651097],[1538524800000, 7.606984],[1538611200000, 7.613372],[1538697600000, 7.524076],[1538784000000, 7.507118],[1538870400000, 7.507118],[1538956800000, 7.507118],[1539043200000, 7.483418],[1539129600000, 7.440882],[1539216000000, 7.472464],[1539302400000, 7.503899],[1539388800000, 7.528428],[1539475200000, 7.528428],[1539561600000, 7.528428],[1539648000000, 7.528428],[1539734400000, 7.545468],[1539820800000, 7.496083],[1539907200000, 7.503353],[1539993600000, 7.514414],[1540080000000, 7.514414],[1540166400000, 7.514414],[1540252800000, 7.522577],[1540339200000, 7.520923],[1540425600000, 7.463335],[1540512000000, 7.506358],[1540598400000, 7.427047],[1540684800000, 7.427047],[1540771200000, 7.427047],[1540857600000, 7.433026],[1540944000000, 7.395709]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });