$(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: [[1251763200000,2.77824],[1251849600000,2.78003],[1251936000000,2.72425],[1252022400000,2.7776],[1252108800000,2.77129],[1252195200000,2.77129],[1252281600000,2.77129],[1252368000000,2.78755],[1252454400000,2.83033],[1252540800000,2.81531],[1252627200000,2.79066],[1252713600000,2.78388],[1252800000000,2.78388],[1252886400000,2.78388],[1252972800000,2.76981],[1253059200000,2.80892],[1253145600000,2.83694],[1253232000000,2.8559],[1253318400000,2.85122],[1253404800000,2.85122],[1253491200000,2.85122],[1253577600000,2.82192],[1253664000000,2.84383],[1253750400000,2.82324],[1253836800000,2.83655],[1253923200000,2.79933],[1254009600000,2.79933],[1254096000000,2.79933],[1254182400000,2.78753],[1254268800000,2.76581]], 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: [[1251763200000, 2.778241],[1251763200000, 2.778241],[1251849600000, 2.780026],[1251936000000, 2.724249],[1252022400000, 2.777602],[1252108800000, 2.771289],[1252195200000, 2.771289],[1252281600000, 2.771289],[1252368000000, 2.787551],[1252454400000, 2.830327],[1252540800000, 2.815310],[1252627200000, 2.790663],[1252713600000, 2.783877],[1252800000000, 2.783877],[1252886400000, 2.783877],[1252972800000, 2.769811],[1253059200000, 2.808920],[1253145600000, 2.836944],[1253232000000, 2.855901],[1253318400000, 2.851224],[1253404800000, 2.851224],[1253491200000, 2.851224],[1253577600000, 2.821921],[1253664000000, 2.843835],[1253750400000, 2.823244],[1253836800000, 2.836550],[1253923200000, 2.799327],[1254009600000, 2.799327],[1254096000000, 2.799327],[1254182400000, 2.787526],[1254268800000, 2.765812]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });