$(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: [[1220227200000,0.04054],[1220313600000,0.040547],[1220400000000,0.040536],[1220486400000,0.0405],[1220572800000,0.040524],[1220659200000,0.040552],[1220745600000,0.040552],[1220832000000,0.040552],[1220918400000,0.040554],[1221004800000,0.040557],[1221091200000,0.040563],[1221177600000,0.040574],[1221264000000,0.040609],[1221350400000,0.040609],[1221436800000,0.040609],[1221523200000,0.040603],[1221609600000,0.040602],[1221696000000,0.040544],[1221782400000,0.040476],[1221868800000,0.040492],[1221955200000,0.040492],[1222041600000,0.040492],[1222128000000,0.040515],[1222214400000,0.040561],[1222300800000,0.040589],[1222387200000,0.040589],[1222473600000,0.040577],[1222560000000,0.040577],[1222646400000,0.040577],[1222732800000,0.040573]], 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: [[1220227200000, 0.040540],[1220227200000, 0.040540],[1220313600000, 0.040547],[1220400000000, 0.040536],[1220486400000, 0.040500],[1220572800000, 0.040524],[1220659200000, 0.040552],[1220745600000, 0.040552],[1220832000000, 0.040552],[1220918400000, 0.040554],[1221004800000, 0.040557],[1221091200000, 0.040563],[1221177600000, 0.040574],[1221264000000, 0.040609],[1221350400000, 0.040609],[1221436800000, 0.040609],[1221523200000, 0.040603],[1221609600000, 0.040602],[1221696000000, 0.040544],[1221782400000, 0.040476],[1221868800000, 0.040492],[1221955200000, 0.040492],[1222041600000, 0.040492],[1222128000000, 0.040515],[1222214400000, 0.040561],[1222300800000, 0.040589],[1222387200000, 0.040589],[1222473600000, 0.040577],[1222560000000, 0.040577],[1222646400000, 0.040577],[1222732800000, 0.040573]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });