$(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: [[1349049600000,2.51838],[1349136000000,2.5069],[1349222400000,2.51882],[1349308800000,2.52125],[1349395200000,2.53309],[1349481600000,2.55125],[1349568000000,2.55125],[1349654400000,2.55125],[1349740800000,2.53981],[1349827200000,2.53901],[1349913600000,2.5235],[1350000000000,2.52392],[1350086400000,2.52988],[1350172800000,2.52988],[1350259200000,2.52988],[1350345600000,2.53688],[1350432000000,2.54831],[1350518400000,2.55595],[1350604800000,2.55569],[1350691200000,2.53686],[1350777600000,2.53686],[1350864000000,2.53686],[1350950400000,2.54305],[1351036800000,2.51437],[1351123200000,2.50128],[1351209600000,2.50853],[1351296000000,2.48593],[1351382400000,2.48593],[1351468800000,2.48593],[1351555200000,2.48484],[1351641600000,2.5083]], 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: [[1349049600000, 2.518385],[1349049600000, 2.518385],[1349136000000, 2.506902],[1349222400000, 2.518815],[1349308800000, 2.521246],[1349395200000, 2.533092],[1349481600000, 2.551246],[1349568000000, 2.551246],[1349654400000, 2.551246],[1349740800000, 2.539806],[1349827200000, 2.539013],[1349913600000, 2.523497],[1350000000000, 2.523920],[1350086400000, 2.529875],[1350172800000, 2.529875],[1350259200000, 2.529875],[1350345600000, 2.536880],[1350432000000, 2.548306],[1350518400000, 2.555952],[1350604800000, 2.555687],[1350691200000, 2.536858],[1350777600000, 2.536858],[1350864000000, 2.536858],[1350950400000, 2.543050],[1351036800000, 2.514367],[1351123200000, 2.501279],[1351209600000, 2.508528],[1351296000000, 2.485932],[1351382400000, 2.485932],[1351468800000, 2.485932],[1351555200000, 2.484845],[1351641600000, 2.508298]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });