$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1246406400000,9.50193],[1246492800000,9.4995],[1246579200000,9.49813],[1246665600000,9.49726],[1246752000000,9.49726],[1246838400000,9.49726],[1246924800000,9.49726],[1247011200000,9.48769],[1247097600000,9.47967],[1247184000000,9.47706],[1247270400000,9.47955],[1247356800000,9.47955],[1247443200000,9.47955],[1247529600000,9.47837],[1247616000000,9.48203],[1247702400000,9.48788],[1247788800000,9.50075],[1247875200000,9.51561],[1247961600000,9.51561],[1248048000000,9.51561],[1248134400000,9.52891],[1248220800000,9.52668],[1248307200000,9.52897],[1248393600000,9.52991],[1248480000000,9.53258],[1248566400000,9.53258],[1248652800000,9.53258],[1248739200000,9.56535],[1248825600000,9.56361],[1248912000000,9.57473],[1248998400000,9.57106]], 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, 9.501928],[1246406400000, 9.501928],[1246492800000, 9.499503],[1246579200000, 9.498135],[1246665600000, 9.497264],[1246752000000, 9.497264],[1246838400000, 9.497264],[1246924800000, 9.497264],[1247011200000, 9.487690],[1247097600000, 9.479672],[1247184000000, 9.477061],[1247270400000, 9.479547],[1247356800000, 9.479547],[1247443200000, 9.479547],[1247529600000, 9.478369],[1247616000000, 9.482034],[1247702400000, 9.487878],[1247788800000, 9.500746],[1247875200000, 9.515608],[1247961600000, 9.515608],[1248048000000, 9.515608],[1248134400000, 9.528914],[1248220800000, 9.526676],[1248307200000, 9.528973],[1248393600000, 9.529909],[1248480000000, 9.532579],[1248566400000, 9.532579],[1248652800000, 9.532579],[1248739200000, 9.565353],[1248825600000, 9.563611],[1248912000000, 9.574733],[1248998400000, 9.571056]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });