$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1107216000000,4.46802],[1107302400000,4.45266],[1107388800000,4.45948],[1107475200000,4.42291],[1107561600000,4.40577],[1107648000000,4.40577],[1107734400000,4.40577],[1107820800000,4.36604],[1107907200000,4.33907],[1107993600000,4.3426],[1108080000000,4.344],[1108166400000,4.38067],[1108252800000,4.38067],[1108339200000,4.38067],[1108425600000,4.42054],[1108512000000,4.44812],[1108598400000,4.46702],[1108684800000,4.46274],[1108771200000,4.46494],[1108857600000,4.46494],[1108944000000,4.46494],[1109030400000,4.47852],[1109116800000,4.54558],[1109203200000,4.54636],[1109289600000,4.56531],[1109376000000,4.52232],[1109462400000,4.52232],[1109548800000,4.52232]], 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: [[1107216000000, 4.468024],[1107216000000, 4.468024],[1107302400000, 4.452655],[1107388800000, 4.459480],[1107475200000, 4.422910],[1107561600000, 4.405770],[1107648000000, 4.405770],[1107734400000, 4.405770],[1107820800000, 4.366037],[1107907200000, 4.339072],[1107993600000, 4.342603],[1108080000000, 4.344000],[1108166400000, 4.380669],[1108252800000, 4.380669],[1108339200000, 4.380669],[1108425600000, 4.420542],[1108512000000, 4.448120],[1108598400000, 4.467016],[1108684800000, 4.462742],[1108771200000, 4.464941],[1108857600000, 4.464941],[1108944000000, 4.464941],[1109030400000, 4.478523],[1109116800000, 4.545580],[1109203200000, 4.546365],[1109289600000, 4.565313],[1109376000000, 4.522322],[1109462400000, 4.522322],[1109548800000, 4.522322]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });