$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1246406400000,15.3483],[1246492800000,15.3312],[1246579200000,15.3193],[1246665600000,15.34],[1246752000000,15.34],[1246838400000,15.34],[1246924800000,15.2305],[1247011200000,15.3443],[1247097600000,15.1412],[1247184000000,15.2404],[1247270400000,15.1561],[1247356800000,15.1561],[1247443200000,15.1561],[1247529600000,15.2216],[1247616000000,15.2169],[1247702400000,15.3505],[1247788800000,15.4119],[1247875200000,15.4014],[1247961600000,15.4014],[1248048000000,15.4014],[1248134400000,15.553],[1248220800000,15.5537],[1248307200000,15.4912],[1248393600000,15.5102],[1248480000000,15.5143],[1248566400000,15.5143],[1248652800000,15.5143],[1248739200000,15.625],[1248825600000,15.605],[1248912000000,15.4702],[1248998400000,15.4234]], 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, 15.348327],[1246406400000, 15.348327],[1246492800000, 15.331206],[1246579200000, 15.319326],[1246665600000, 15.340006],[1246752000000, 15.340006],[1246838400000, 15.340006],[1246924800000, 15.230466],[1247011200000, 15.344279],[1247097600000, 15.141168],[1247184000000, 15.240442],[1247270400000, 15.156125],[1247356800000, 15.156125],[1247443200000, 15.156125],[1247529600000, 15.221570],[1247616000000, 15.216908],[1247702400000, 15.350452],[1247788800000, 15.411887],[1247875200000, 15.401376],[1247961600000, 15.401376],[1248048000000, 15.401376],[1248134400000, 15.553041],[1248220800000, 15.553729],[1248307200000, 15.491235],[1248393600000, 15.510217],[1248480000000, 15.514311],[1248566400000, 15.514311],[1248652800000, 15.514311],[1248739200000, 15.625002],[1248825600000, 15.605025],[1248912000000, 15.470199],[1248998400000, 15.423438]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });