$(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: 'Курс UZS, грн'}, 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: 'Курс UZS', data: [[1472688000000,0.008724],[1472774400000,0.008903],[1472860800000,0.008908],[1472947200000,0.008908],[1473033600000,0.008908],[1473120000000,0.008945],[1473206400000,0.008965],[1473292800000,0.008924],[1473379200000,0.008895],[1473465600000,0.008907],[1473552000000,0.008907],[1473638400000,0.008907],[1473724800000,0.008892],[1473811200000,0.008808],[1473897600000,0.008776],[1473984000000,0.008735],[1474070400000,0.008633],[1474156800000,0.008633],[1474243200000,0.008633],[1474329600000,0.008574],[1474416000000,0.008587],[1474502400000,0.008643],[1474588800000,0.008626],[1474675200000,0.008649],[1474761600000,0.008649],[1474848000000,0.008649],[1474934400000,0.008605],[1475020800000,0.008581],[1475107200000,0.008603],[1475193600000,0.008608]], 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: [[1472688000000, 0.008724],[1472688000000, 0.008724],[1472774400000, 0.008903],[1472860800000, 0.008908],[1472947200000, 0.008908],[1473033600000, 0.008908],[1473120000000, 0.008945],[1473206400000, 0.008965],[1473292800000, 0.008924],[1473379200000, 0.008895],[1473465600000, 0.008907],[1473552000000, 0.008907],[1473638400000, 0.008907],[1473724800000, 0.008892],[1473811200000, 0.008808],[1473897600000, 0.008776],[1473984000000, 0.008735],[1474070400000, 0.008633],[1474156800000, 0.008633],[1474243200000, 0.008633],[1474329600000, 0.008574],[1474416000000, 0.008587],[1474502400000, 0.008643],[1474588800000, 0.008626],[1474675200000, 0.008649],[1474761600000, 0.008649],[1474848000000, 0.008649],[1474934400000, 0.008605],[1475020800000, 0.008581],[1475107200000, 0.008603],[1475193600000, 0.008608]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });