$(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: 'Курс BYN, грн'}, 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: 'Курс BYN', data: [[1285891200000,0.00263],[1285977600000,0.00263],[1286064000000,0.00263],[1286150400000,0.00263],[1286236800000,0.00263],[1286323200000,0.00263],[1286409600000,0.00264],[1286496000000,0.00264],[1286582400000,0.00264],[1286668800000,0.00264],[1286755200000,0.00264],[1286841600000,0.00264],[1286928000000,0.00264],[1287014400000,0.00264],[1287100800000,0.00265],[1287187200000,0.00264],[1287273600000,0.00264],[1287360000000,0.00264],[1287446400000,0.00264],[1287532800000,0.00264],[1287619200000,0.00263],[1287705600000,0.00264],[1287792000000,0.00263],[1287878400000,0.00263],[1287964800000,0.00263],[1288051200000,0.00264],[1288137600000,0.00263],[1288224000000,0.00263],[1288310400000,0.00263],[1288396800000,0.00263],[1288483200000,0.00263]], 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: [[1285891200000, 0.002630],[1285891200000, 0.002630],[1285977600000, 0.002630],[1286064000000, 0.002630],[1286150400000, 0.002630],[1286236800000, 0.002630],[1286323200000, 0.002630],[1286409600000, 0.002640],[1286496000000, 0.002640],[1286582400000, 0.002640],[1286668800000, 0.002640],[1286755200000, 0.002640],[1286841600000, 0.002640],[1286928000000, 0.002640],[1287014400000, 0.002640],[1287100800000, 0.002650],[1287187200000, 0.002640],[1287273600000, 0.002640],[1287360000000, 0.002640],[1287446400000, 0.002640],[1287532800000, 0.002640],[1287619200000, 0.002630],[1287705600000, 0.002640],[1287792000000, 0.002630],[1287878400000, 0.002630],[1287964800000, 0.002630],[1288051200000, 0.002640],[1288137600000, 0.002630],[1288224000000, 0.002630],[1288310400000, 0.002630],[1288396800000, 0.002630],[1288483200000, 0.002630]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });