$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1277942400000,13.6763],[1278028800000,13.7457],[1278115200000,13.9863],[1278201600000,13.9863],[1278288000000,13.9863],[1278374400000,13.9737],[1278460800000,14.029],[1278547200000,14.0056],[1278633600000,14.1127],[1278720000000,14.0915],[1278806400000,14.0915],[1278892800000,14.0915],[1278979200000,14.0199],[1279065600000,14.0148],[1279152000000,14.1633],[1279238400000,14.297],[1279324800000,14.4828],[1279411200000,14.4828],[1279497600000,14.4828],[1279584000000,14.4401],[1279670400000,14.3098],[1279756800000,14.2804],[1279843200000,14.3146],[1279929600000,14.3611],[1280016000000,14.3611],[1280102400000,14.3611],[1280188800000,14.4036],[1280275200000,14.5072],[1280361600000,14.4618],[1280448000000,14.5434],[1280534400000,14.5071]], 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: [[1277942400000, 13.676292],[1277942400000, 13.676292],[1278028800000, 13.745729],[1278115200000, 13.986326],[1278201600000, 13.986326],[1278288000000, 13.986326],[1278374400000, 13.973664],[1278460800000, 14.029018],[1278547200000, 14.005607],[1278633600000, 14.112723],[1278720000000, 14.091467],[1278806400000, 14.091467],[1278892800000, 14.091467],[1278979200000, 14.019900],[1279065600000, 14.014781],[1279152000000, 14.163298],[1279238400000, 14.297004],[1279324800000, 14.482781],[1279411200000, 14.482781],[1279497600000, 14.482781],[1279584000000, 14.440072],[1279670400000, 14.309763],[1279756800000, 14.280431],[1279843200000, 14.314635],[1279929600000, 14.361121],[1280016000000, 14.361121],[1280102400000, 14.361121],[1280188800000, 14.403616],[1280275200000, 14.507207],[1280361600000, 14.461776],[1280448000000, 14.543385],[1280534400000, 14.507068]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });