$(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: [[1154390400000,9.4218],[1154476800000,9.42416],[1154563200000,9.47444],[1154649600000,9.51907],[1154736000000,9.55757],[1154822400000,9.55757],[1154908800000,9.55757],[1154995200000,9.62797],[1155081600000,9.62258],[1155168000000,9.63112],[1155254400000,9.61609],[1155340800000,9.57461],[1155427200000,9.57461],[1155513600000,9.57461],[1155600000000,9.52412],[1155686400000,9.53926],[1155772800000,9.55407],[1155859200000,9.57723],[1155945600000,9.50248],[1156032000000,9.50248],[1156118400000,9.50248],[1156204800000,9.58298],[1156291200000,9.53724],[1156377600000,9.55272],[1156464000000,9.55272],[1156550400000,9.55272],[1156636800000,9.55272],[1156723200000,9.55272],[1156809600000,9.56921],[1156896000000,9.58939],[1156982400000,9.60328]], 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: [[1154390400000, 9.421796],[1154390400000, 9.421796],[1154476800000, 9.424155],[1154563200000, 9.474441],[1154649600000, 9.519069],[1154736000000, 9.557568],[1154822400000, 9.557568],[1154908800000, 9.557568],[1154995200000, 9.627967],[1155081600000, 9.622581],[1155168000000, 9.631120],[1155254400000, 9.616092],[1155340800000, 9.574614],[1155427200000, 9.574614],[1155513600000, 9.574614],[1155600000000, 9.524120],[1155686400000, 9.539264],[1155772800000, 9.554074],[1155859200000, 9.577227],[1155945600000, 9.502477],[1156032000000, 9.502477],[1156118400000, 9.502477],[1156204800000, 9.582983],[1156291200000, 9.537235],[1156377600000, 9.552724],[1156464000000, 9.552724],[1156550400000, 9.552724],[1156636800000, 9.552724],[1156723200000, 9.552724],[1156809600000, 9.569208],[1156896000000, 9.589385],[1156982400000, 9.603279]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });