$(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: [[1257033600000,0.053025],[1257120000000,0.053025],[1257206400000,0.053048],[1257292800000,0.05311],[1257379200000,0.053145],[1257465600000,0.053135],[1257552000000,0.052997],[1257638400000,0.052997],[1257724800000,0.052997],[1257811200000,0.052951],[1257897600000,0.052991],[1257984000000,0.053035],[1258070400000,0.053156],[1258156800000,0.053324],[1258243200000,0.053324],[1258329600000,0.053324],[1258416000000,0.053467],[1258502400000,0.053565],[1258588800000,0.05358],[1258675200000,0.053664],[1258761600000,0.05366],[1258848000000,0.05366],[1258934400000,0.05366],[1259020800000,0.053696],[1259107200000,0.053714],[1259193600000,0.053612],[1259280000000,0.053665],[1259366400000,0.053664],[1259452800000,0.053664],[1259539200000,0.053664]], 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: [[1257033600000, 0.053025],[1257033600000, 0.053025],[1257120000000, 0.053025],[1257206400000, 0.053048],[1257292800000, 0.053110],[1257379200000, 0.053145],[1257465600000, 0.053135],[1257552000000, 0.052997],[1257638400000, 0.052997],[1257724800000, 0.052997],[1257811200000, 0.052951],[1257897600000, 0.052991],[1257984000000, 0.053035],[1258070400000, 0.053156],[1258156800000, 0.053324],[1258243200000, 0.053324],[1258329600000, 0.053324],[1258416000000, 0.053467],[1258502400000, 0.053565],[1258588800000, 0.053580],[1258675200000, 0.053664],[1258761600000, 0.053660],[1258848000000, 0.053660],[1258934400000, 0.053660],[1259020800000, 0.053696],[1259107200000, 0.053714],[1259193600000, 0.053612],[1259280000000, 0.053665],[1259366400000, 0.053664],[1259452800000, 0.053664],[1259539200000, 0.053664]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });