$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1246406400000,11.8598],[1246492800000,11.8169],[1246579200000,11.8159],[1246665600000,11.8148],[1246752000000,11.8148],[1246838400000,11.8148],[1246924800000,11.7629],[1247011200000,11.7968],[1247097600000,11.7644],[1247184000000,11.8043],[1247270400000,11.7916],[1247356800000,11.7916],[1247443200000,11.7916],[1247529600000,11.8195],[1247616000000,11.8203],[1247702400000,11.8589],[1247788800000,11.8827],[1247875200000,11.8809],[1247961600000,11.8809],[1248048000000,11.8809],[1248134400000,11.9423],[1248220800000,11.934],[1248307200000,11.9456],[1248393600000,11.942],[1248480000000,11.9479],[1248566400000,11.9479],[1248652800000,11.9479],[1248739200000,11.9938],[1248825600000,11.9981],[1248912000000,11.9606],[1248998400000,11.9401]], 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, 11.859784],[1246406400000, 11.859784],[1246492800000, 11.816906],[1246579200000, 11.815899],[1246665600000, 11.814817],[1246752000000, 11.814817],[1246838400000, 11.814817],[1246924800000, 11.762903],[1247011200000, 11.796829],[1247097600000, 11.764352],[1247184000000, 11.804296],[1247270400000, 11.791634],[1247356800000, 11.791634],[1247443200000, 11.791634],[1247529600000, 11.819529],[1247616000000, 11.820266],[1247702400000, 11.858870],[1247788800000, 11.882729],[1247875200000, 11.880934],[1247961600000, 11.880934],[1248048000000, 11.880934],[1248134400000, 11.942313],[1248220800000, 11.933983],[1248307200000, 11.945566],[1248393600000, 11.941978],[1248480000000, 11.947907],[1248566400000, 11.947907],[1248652800000, 11.947907],[1248739200000, 11.993794],[1248825600000, 11.998122],[1248912000000, 11.960589],[1248998400000, 11.940067]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });