$(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: 'Курс CZK, грн'}, 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: 'Курс CZK', data: [[1472688000000,1.07429],[1472774400000,1.09773],[1472860800000,1.10319],[1472947200000,1.10319],[1473033600000,1.10319],[1473120000000,1.10594],[1473206400000,1.10878],[1473292800000,1.11136],[1473379200000,1.11358],[1473465600000,1.11233],[1473552000000,1.11233],[1473638400000,1.11233],[1473724800000,1.10626],[1473811200000,1.09993],[1473897600000,1.09303],[1473984000000,1.0914],[1474070400000,1.07595],[1474156800000,1.07595],[1474243200000,1.07595],[1474329600000,1.06469],[1474416000000,1.06805],[1474502400000,1.07178],[1474588800000,1.07813],[1474675200000,1.0786],[1474761600000,1.0786],[1474848000000,1.0786],[1474934400000,1.07954],[1475020800000,1.07237],[1475107200000,1.07571],[1475193600000,1.076]], 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: [[1472688000000, 1.074286],[1472688000000, 1.074286],[1472774400000, 1.097729],[1472860800000, 1.103186],[1472947200000, 1.103186],[1473033600000, 1.103186],[1473120000000, 1.105941],[1473206400000, 1.108775],[1473292800000, 1.111362],[1473379200000, 1.113581],[1473465600000, 1.112326],[1473552000000, 1.112326],[1473638400000, 1.112326],[1473724800000, 1.106262],[1473811200000, 1.099934],[1473897600000, 1.093031],[1473984000000, 1.091405],[1474070400000, 1.075953],[1474156800000, 1.075953],[1474243200000, 1.075953],[1474329600000, 1.064687],[1474416000000, 1.068052],[1474502400000, 1.071782],[1474588800000, 1.078127],[1474675200000, 1.078598],[1474761600000, 1.078598],[1474848000000, 1.078598],[1474934400000, 1.079541],[1475020800000, 1.072365],[1475107200000, 1.075713],[1475193600000, 1.076002]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });