$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1246406400000,0.0397683],[1246492800000,0.0397206],[1246579200000,0.0399746],[1246665600000,0.0392576],[1246752000000,0.0392576],[1246838400000,0.0392576],[1246924800000,0.0387801],[1247011200000,0.0391526],[1247097600000,0.0381115],[1247184000000,0.0387772],[1247270400000,0.0381934],[1247356800000,0.0381934],[1247443200000,0.0381934],[1247529600000,0.0383332],[1247616000000,0.0386892],[1247702400000,0.0393466],[1247788800000,0.039572],[1247875200000,0.0393179],[1247961600000,0.0393179],[1248048000000,0.0393179],[1248134400000,0.039917],[1248220800000,0.0401599],[1248307200000,0.0400473],[1248393600000,0.0401964],[1248480000000,0.0409114],[1248566400000,0.0409114],[1248652800000,0.0409114],[1248739200000,0.0409515],[1248825600000,0.0408979],[1248912000000,0.0402598],[1248998400000,0.040319]], 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, 0.039768],[1246406400000, 0.039768],[1246492800000, 0.039721],[1246579200000, 0.039975],[1246665600000, 0.039258],[1246752000000, 0.039258],[1246838400000, 0.039258],[1246924800000, 0.038780],[1247011200000, 0.039153],[1247097600000, 0.038111],[1247184000000, 0.038777],[1247270400000, 0.038193],[1247356800000, 0.038193],[1247443200000, 0.038193],[1247529600000, 0.038333],[1247616000000, 0.038689],[1247702400000, 0.039347],[1247788800000, 0.039572],[1247875200000, 0.039318],[1247961600000, 0.039318],[1248048000000, 0.039318],[1248134400000, 0.039917],[1248220800000, 0.040160],[1248307200000, 0.040047],[1248393600000, 0.040196],[1248480000000, 0.040911],[1248566400000, 0.040911],[1248652800000, 0.040911],[1248739200000, 0.040952],[1248825600000, 0.040898],[1248912000000, 0.040260],[1248998400000, 0.040319]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });