$(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: [[1433116800000,0.00142],[1433203200000,0.00142],[1433289600000,0.00141],[1433376000000,0.00141],[1433462400000,0.00139],[1433548800000,0.00137],[1433635200000,0.00137],[1433721600000,0.00137],[1433808000000,0.00137],[1433894400000,0.00137],[1433980800000,0.00138],[1434067200000,0.00137],[1434153600000,0.00137],[1434240000000,0.00137],[1434326400000,0.00137],[1434412800000,0.00139],[1434499200000,0.00144],[1434585600000,0.0014],[1434672000000,0.00139],[1434758400000,0.00141],[1434844800000,0.00141],[1434931200000,0.00141],[1435017600000,0.00142],[1435104000000,0.0014],[1435190400000,0.00138],[1435276800000,0.00138],[1435363200000,0.00137],[1435449600000,0.00137],[1435536000000,0.00137],[1435622400000,0.00137]], 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: [[1433116800000, 0.001420],[1433116800000, 0.001420],[1433203200000, 0.001420],[1433289600000, 0.001410],[1433376000000, 0.001410],[1433462400000, 0.001390],[1433548800000, 0.001370],[1433635200000, 0.001370],[1433721600000, 0.001370],[1433808000000, 0.001370],[1433894400000, 0.001370],[1433980800000, 0.001380],[1434067200000, 0.001370],[1434153600000, 0.001370],[1434240000000, 0.001370],[1434326400000, 0.001370],[1434412800000, 0.001390],[1434499200000, 0.001440],[1434585600000, 0.001400],[1434672000000, 0.001390],[1434758400000, 0.001410],[1434844800000, 0.001410],[1434931200000, 0.001410],[1435017600000, 0.001420],[1435104000000, 0.001400],[1435190400000, 0.001380],[1435276800000, 0.001380],[1435363200000, 0.001370],[1435449600000, 0.001370],[1435536000000, 0.001370],[1435622400000, 0.001370]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });