$(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: [[1246406400000,7.07441],[1246492800000,7.06557],[1246579200000,7.04377],[1246665600000,7.0263],[1246752000000,7.0263],[1246838400000,7.0263],[1246924800000,6.98389],[1247011200000,7.04598],[1247097600000,6.99038],[1247184000000,7.0532],[1247270400000,7.00045],[1247356800000,7.00045],[1247443200000,7.00045],[1247529600000,7.04097],[1247616000000,7.03879],[1247702400000,7.08311],[1247788800000,7.12421],[1247875200000,7.09601],[1247961600000,7.09601],[1248048000000,7.09601],[1248134400000,7.16762],[1248220800000,7.17463],[1248307200000,7.17149],[1248393600000,7.17206],[1248480000000,7.16735],[1248566400000,7.16735],[1248652800000,7.16735],[1248739200000,7.20286],[1248825600000,7.1875],[1248912000000,7.11297],[1248998400000,7.06412]], 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: [[1246406400000, 7.074407],[1246406400000, 7.074407],[1246492800000, 7.065573],[1246579200000, 7.043773],[1246665600000, 7.026303],[1246752000000, 7.026303],[1246838400000, 7.026303],[1246924800000, 6.983887],[1247011200000, 7.045977],[1247097600000, 6.990382],[1247184000000, 7.053203],[1247270400000, 7.000448],[1247356800000, 7.000448],[1247443200000, 7.000448],[1247529600000, 7.040969],[1247616000000, 7.038786],[1247702400000, 7.083113],[1247788800000, 7.124209],[1247875200000, 7.096007],[1247961600000, 7.096007],[1248048000000, 7.096007],[1248134400000, 7.167621],[1248220800000, 7.174626],[1248307200000, 7.171490],[1248393600000, 7.172060],[1248480000000, 7.167353],[1248566400000, 7.167353],[1248652800000, 7.167353],[1248739200000, 7.202862],[1248825600000, 7.187496],[1248912000000, 7.112968],[1248998400000, 7.064124]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });