$(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: 'Курс KZT, грн'}, 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: 'Курс KZT', data: [[1277942400000,0.053577],[1278028800000,0.053626],[1278115200000,0.053638],[1278201600000,0.053638],[1278288000000,0.053638],[1278374400000,0.053683],[1278460800000,0.053674],[1278547200000,0.053699],[1278633600000,0.053602],[1278720000000,0.053578],[1278806400000,0.053578],[1278892800000,0.053578],[1278979200000,0.053545],[1279065600000,0.053502],[1279152000000,0.053487],[1279238400000,0.053539],[1279324800000,0.05354],[1279411200000,0.05354],[1279497600000,0.05354],[1279584000000,0.053565],[1279670400000,0.053531],[1279756800000,0.053519],[1279843200000,0.053485],[1279929600000,0.053547],[1280016000000,0.053547],[1280102400000,0.053547],[1280188800000,0.053599],[1280275200000,0.053564],[1280361600000,0.053491],[1280448000000,0.053484],[1280534400000,0.053441]], 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, 0.053577],[1277942400000, 0.053577],[1278028800000, 0.053626],[1278115200000, 0.053638],[1278201600000, 0.053638],[1278288000000, 0.053638],[1278374400000, 0.053683],[1278460800000, 0.053674],[1278547200000, 0.053699],[1278633600000, 0.053602],[1278720000000, 0.053578],[1278806400000, 0.053578],[1278892800000, 0.053578],[1278979200000, 0.053545],[1279065600000, 0.053502],[1279152000000, 0.053487],[1279238400000, 0.053539],[1279324800000, 0.053540],[1279411200000, 0.053540],[1279497600000, 0.053540],[1279584000000, 0.053565],[1279670400000, 0.053531],[1279756800000, 0.053519],[1279843200000, 0.053485],[1279929600000, 0.053547],[1280016000000, 0.053547],[1280102400000, 0.053547],[1280188800000, 0.053599],[1280275200000, 0.053564],[1280361600000, 0.053491],[1280448000000, 0.053484],[1280534400000, 0.053441]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });