$(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: 'Курс GBP, грн'}, 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: 'Курс GBP', data: [[1214870400000,9.63722],[1214956800000,9.67224],[1215043200000,9.63923],[1215129600000,9.63952],[1215216000000,9.59145],[1215302400000,9.59145],[1215388800000,9.59145],[1215475200000,9.51305],[1215561600000,9.55892],[1215648000000,9.55211],[1215734400000,9.55865],[1215820800000,9.59453],[1215907200000,9.59453],[1215993600000,9.59453],[1216080000000,9.62007],[1216166400000,9.72826],[1216252800000,9.68709],[1216339200000,9.69344],[1216425600000,9.65132],[1216512000000,9.65132],[1216598400000,9.65132],[1216684800000,9.65929],[1216771200000,9.70928],[1216857600000,9.67956],[1216944000000,9.62238],[1217030400000,9.65981],[1217116800000,9.65981],[1217203200000,9.65981],[1217289600000,9.62344],[1217376000000,9.63439],[1217462400000,9.6009]], 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, 9.637216],[1214870400000, 9.637216],[1214956800000, 9.672235],[1215043200000, 9.639235],[1215129600000, 9.639524],[1215216000000, 9.591453],[1215302400000, 9.591453],[1215388800000, 9.591453],[1215475200000, 9.513048],[1215561600000, 9.558920],[1215648000000, 9.552108],[1215734400000, 9.558653],[1215820800000, 9.594526],[1215907200000, 9.594526],[1215993600000, 9.594526],[1216080000000, 9.620073],[1216166400000, 9.728263],[1216252800000, 9.687087],[1216339200000, 9.693444],[1216425600000, 9.651319],[1216512000000, 9.651319],[1216598400000, 9.651319],[1216684800000, 9.659290],[1216771200000, 9.709276],[1216857600000, 9.679555],[1216944000000, 9.622380],[1217030400000, 9.659814],[1217116800000, 9.659814],[1217203200000, 9.659814],[1217289600000, 9.623439],[1217376000000, 9.634389],[1217462400000, 9.600898]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });