$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1277942400000,11.6911],[1278028800000,11.7165],[1278115200000,11.8032],[1278201600000,11.8032],[1278288000000,11.8032],[1278374400000,11.8018],[1278460800000,11.8173],[1278547200000,11.8279],[1278633600000,11.826],[1278720000000,11.8243],[1278806400000,11.8243],[1278892800000,11.8243],[1278979200000,11.7793],[1279065600000,11.7884],[1279152000000,11.8448],[1279238400000,11.8899],[1279324800000,11.9518],[1279411200000,11.9518],[1279497600000,11.9518],[1279584000000,11.9471],[1279670400000,11.9233],[1279756800000,11.8947],[1279843200000,11.9198],[1279929600000,11.9462],[1280016000000,11.9462],[1280102400000,11.9462],[1280188800000,11.9398],[1280275200000,11.9635],[1280361600000,11.9569],[1280448000000,12.0107],[1280534400000,11.9852]], 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, 11.691118],[1277942400000, 11.691118],[1278028800000, 11.716541],[1278115200000, 11.803193],[1278201600000, 11.803193],[1278288000000, 11.803193],[1278374400000, 11.801850],[1278460800000, 11.817340],[1278547200000, 11.827918],[1278633600000, 11.826036],[1278720000000, 11.824301],[1278806400000, 11.824301],[1278892800000, 11.824301],[1278979200000, 11.779347],[1279065600000, 11.788381],[1279152000000, 11.844780],[1279238400000, 11.889896],[1279324800000, 11.951774],[1279411200000, 11.951774],[1279497600000, 11.951774],[1279584000000, 11.947095],[1279670400000, 11.923327],[1279756800000, 11.894724],[1279843200000, 11.919802],[1279929600000, 11.946224],[1280016000000, 11.946224],[1280102400000, 11.946224],[1280188800000, 11.939793],[1280275200000, 11.963501],[1280361600000, 11.956912],[1280448000000, 12.010694],[1280534400000, 11.985185]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });