$(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: [[1109635200000,0.0290477],[1109721600000,0.0289639],[1109808000000,0.0286598],[1109894400000,0.0287515],[1109980800000,0.02866],[1110067200000,0.02866],[1110153600000,0.02866],[1110240000000,0.02866],[1110326400000,0.02866],[1110412800000,0.0292537],[1110499200000,0.0291245],[1110585600000,0.0292151],[1110672000000,0.0292151],[1110758400000,0.0292151],[1110844800000,0.028884],[1110931200000,0.0289442],[1111017600000,0.0287681],[1111104000000,0.0285708],[1111190400000,0.0286029],[1111276800000,0.0286029],[1111363200000,0.0286029],[1111449600000,null],[1111536000000,0.0283324],[1111622400000,0.0278217],[1111708800000,0.0277253],[1111795200000,0.0277253],[1111881600000,0.0277253],[1111968000000,0.0277253],[1112054400000,0.0277253],[1112140800000,0.0274968],[1112227200000,0.027655]], 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: [[1109635200000, 0.029048],[1109635200000, 0.029048],[1109721600000, 0.028964],[1109808000000, 0.028660],[1109894400000, 0.028751],[1109980800000, 0.028660],[1110067200000, 0.028660],[1110153600000, 0.028660],[1110240000000, 0.028660],[1110326400000, 0.028660],[1110412800000, 0.029254],[1110499200000, 0.029125],[1110585600000, 0.029215],[1110672000000, 0.029215],[1110758400000, 0.029215],[1110844800000, 0.028884],[1110931200000, 0.028944],[1111017600000, 0.028768],[1111104000000, 0.028571],[1111190400000, 0.028603],[1111276800000, 0.028603],[1111363200000, 0.028603],[1111536000000, 0.028332],[1111622400000, 0.027822],[1111708800000, 0.027725],[1111795200000, 0.027725],[1111881600000, 0.027725],[1111968000000, 0.027725],[1112054400000, 0.027725],[1112140800000, 0.027497],[1112227200000, 0.027655]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });