$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1107216000000,1.6942],[1107302400000,1.70582],[1107388800000,1.70735],[1107475200000,1.72742],[1107561600000,1.72545],[1107648000000,1.72545],[1107734400000,1.72545],[1107820800000,1.71827],[1107907200000,1.69716],[1107993600000,1.6822],[1108080000000,1.6896],[1108166400000,1.69386],[1108252800000,1.69386],[1108339200000,1.69386],[1108425600000,1.71322],[1108512000000,1.73614],[1108598400000,1.72496],[1108684800000,1.72704],[1108771200000,1.73153],[1108857600000,1.73153],[1108944000000,1.73153],[1109030400000,1.73483],[1109116800000,1.76214],[1109203200000,1.77021],[1109289600000,1.78387],[1109376000000,1.77813],[1109462400000,1.77813],[1109548800000,1.77813]], 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, 1.694205],[1107216000000, 1.694205],[1107302400000, 1.705819],[1107388800000, 1.707353],[1107475200000, 1.727417],[1107561600000, 1.725455],[1107648000000, 1.725455],[1107734400000, 1.725455],[1107820800000, 1.718271],[1107907200000, 1.697160],[1107993600000, 1.682196],[1108080000000, 1.689604],[1108166400000, 1.693863],[1108252800000, 1.693863],[1108339200000, 1.693863],[1108425600000, 1.713222],[1108512000000, 1.736144],[1108598400000, 1.724962],[1108684800000, 1.727035],[1108771200000, 1.731530],[1108857600000, 1.731530],[1108944000000, 1.731530],[1109030400000, 1.734828],[1109116800000, 1.762137],[1109203200000, 1.770210],[1109289600000, 1.783867],[1109376000000, 1.778129],[1109462400000, 1.778129],[1109548800000, 1.778129]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });