$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1214870400000,7.63605],[1214956800000,7.64977],[1215043200000,7.66512],[1215129600000,7.70391],[1215216000000,7.58492],[1215302400000,7.58492],[1215388800000,7.58492],[1215475200000,7.57524],[1215561600000,7.59361],[1215648000000,7.60873],[1215734400000,7.60534],[1215820800000,7.66746],[1215907200000,7.66746],[1215993600000,7.66746],[1216080000000,7.67201],[1216166400000,7.73932],[1216252800000,7.69106],[1216339200000,7.67139],[1216425600000,7.65494],[1216512000000,7.65494],[1216598400000,7.65494],[1216684800000,7.67527],[1216771200000,7.7048],[1216857600000,7.61975],[1216944000000,7.59206],[1217030400000,7.61966],[1217116800000,7.61966],[1217203200000,7.61966],[1217289600000,7.62657],[1217376000000,7.60876],[1217462400000,7.55303]], 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: [[1214870400000, 7.636048],[1214870400000, 7.636048],[1214956800000, 7.649771],[1215043200000, 7.665120],[1215129600000, 7.703907],[1215216000000, 7.584921],[1215302400000, 7.584921],[1215388800000, 7.584921],[1215475200000, 7.575241],[1215561600000, 7.593606],[1215648000000, 7.608732],[1215734400000, 7.605342],[1215820800000, 7.667465],[1215907200000, 7.667465],[1215993600000, 7.667465],[1216080000000, 7.672008],[1216166400000, 7.739320],[1216252800000, 7.691063],[1216339200000, 7.671391],[1216425600000, 7.654944],[1216512000000, 7.654944],[1216598400000, 7.654944],[1216684800000, 7.675272],[1216771200000, 7.704796],[1216857600000, 7.619746],[1216944000000, 7.592058],[1217030400000, 7.619662],[1217116800000, 7.619662],[1217203200000, 7.619662],[1217289600000, 7.626575],[1217376000000, 7.608758],[1217462400000, 7.553026]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });