$(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: [[1296518400000,2.76244],[1296604800000,2.79103],[1296691200000,2.80156],[1296777600000,2.78913],[1296864000000,2.77655],[1296950400000,2.77655],[1297036800000,2.77655],[1297123200000,2.77952],[1297209600000,2.78799],[1297296000000,2.78351],[1297382400000,2.74733],[1297468800000,2.741],[1297555200000,2.741],[1297641600000,2.741],[1297728000000,2.70719],[1297814400000,2.73161],[1297900800000,2.74454],[1297987200000,2.75597],[1298073600000,2.76463],[1298160000000,2.76463],[1298246400000,2.76463],[1298332800000,2.76308],[1298419200000,2.73574],[1298505600000,2.75178],[1298592000000,2.73279],[1298678400000,2.74855],[1298764800000,2.74855],[1298851200000,2.74855]], 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: [[1296518400000, 2.762436],[1296518400000, 2.762436],[1296604800000, 2.791030],[1296691200000, 2.801556],[1296777600000, 2.789132],[1296864000000, 2.776554],[1296950400000, 2.776554],[1297036800000, 2.776554],[1297123200000, 2.779519],[1297209600000, 2.787988],[1297296000000, 2.783507],[1297382400000, 2.747325],[1297468800000, 2.740997],[1297555200000, 2.740997],[1297641600000, 2.740997],[1297728000000, 2.707187],[1297814400000, 2.731608],[1297900800000, 2.744542],[1297987200000, 2.755968],[1298073600000, 2.764633],[1298160000000, 2.764633],[1298246400000, 2.764633],[1298332800000, 2.763075],[1298419200000, 2.735744],[1298505600000, 2.751785],[1298592000000, 2.732791],[1298678400000, 2.748553],[1298764800000, 2.748553],[1298851200000, 2.748553]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });