$(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: [[1257033600000,0.00293],[1257120000000,0.00293],[1257206400000,0.00292],[1257292800000,0.00293],[1257379200000,0.00293],[1257465600000,0.00293],[1257552000000,0.00293],[1257638400000,0.00293],[1257724800000,0.00293],[1257811200000,0.00294],[1257897600000,0.00295],[1257984000000,0.00295],[1258070400000,0.00295],[1258156800000,0.00294],[1258243200000,0.00294],[1258329600000,0.00294],[1258416000000,0.00294],[1258502400000,0.00293],[1258588800000,0.00293],[1258675200000,0.00292],[1258761600000,0.00292],[1258848000000,0.00292],[1258934400000,0.00292],[1259020800000,0.00292],[1259107200000,0.00292],[1259193600000,0.00291],[1259280000000,0.00291],[1259366400000,0.00287],[1259452800000,0.00287],[1259539200000,0.00287]], 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: [[1257033600000, 0.002930],[1257033600000, 0.002930],[1257120000000, 0.002930],[1257206400000, 0.002920],[1257292800000, 0.002930],[1257379200000, 0.002930],[1257465600000, 0.002930],[1257552000000, 0.002930],[1257638400000, 0.002930],[1257724800000, 0.002930],[1257811200000, 0.002940],[1257897600000, 0.002950],[1257984000000, 0.002950],[1258070400000, 0.002950],[1258156800000, 0.002940],[1258243200000, 0.002940],[1258329600000, 0.002940],[1258416000000, 0.002940],[1258502400000, 0.002930],[1258588800000, 0.002930],[1258675200000, 0.002920],[1258761600000, 0.002920],[1258848000000, 0.002920],[1258934400000, 0.002920],[1259020800000, 0.002920],[1259107200000, 0.002920],[1259193600000, 0.002910],[1259280000000, 0.002910],[1259366400000, 0.002870],[1259452800000, 0.002870],[1259539200000, 0.002870]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });