$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1277942400000,5.00031],[1278028800000,4.98662],[1278115200000,5.02791],[1278201600000,5.02791],[1278288000000,5.02791],[1278374400000,5.05174],[1278460800000,5.07835],[1278547200000,5.06162],[1278633600000,5.0987],[1278720000000,5.08866],[1278806400000,5.08866],[1278892800000,5.08866],[1278979200000,5.074],[1279065600000,5.07681],[1279152000000,5.11806],[1279238400000,5.14605],[1279324800000,5.15886],[1279411200000,5.15886],[1279497600000,5.15886],[1279584000000,5.13193],[1279670400000,5.12281],[1279756800000,5.16796],[1279843200000,5.17975],[1279929600000,5.20175],[1280016000000,5.20175],[1280102400000,5.20175],[1280188800000,5.19503],[1280275200000,5.22233],[1280361600000,5.21981],[1280448000000,5.21834],[1280534400000,5.2188]], 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, 5.000306],[1277942400000, 5.000306],[1278028800000, 4.986623],[1278115200000, 5.027908],[1278201600000, 5.027908],[1278288000000, 5.027908],[1278374400000, 5.051743],[1278460800000, 5.078348],[1278547200000, 5.061623],[1278633600000, 5.098697],[1278720000000, 5.088665],[1278806400000, 5.088665],[1278892800000, 5.088665],[1278979200000, 5.073998],[1279065600000, 5.076812],[1279152000000, 5.118055],[1279238400000, 5.146050],[1279324800000, 5.158859],[1279411200000, 5.158859],[1279497600000, 5.158859],[1279584000000, 5.131931],[1279670400000, 5.122811],[1279756800000, 5.167962],[1279843200000, 5.179748],[1279929600000, 5.201753],[1280016000000, 5.201753],[1280102400000, 5.201753],[1280188800000, 5.195035],[1280275200000, 5.222329],[1280361600000, 5.219813],[1280448000000, 5.218344],[1280534400000, 5.218804]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });