$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1270080000000,12.0321],[1270166400000,12.0441],[1270252800000,12.0441],[1270339200000,12.0441],[1270425600000,12.0441],[1270512000000,12.0441],[1270598400000,12.0049],[1270684800000,11.9824],[1270771200000,11.9959],[1270857600000,12.0214],[1270944000000,12.0214],[1271030400000,12.0214],[1271116800000,12.0897],[1271203200000,12.0969],[1271289600000,12.0944],[1271376000000,12.0768],[1271462400000,12.0822],[1271548800000,12.0822],[1271635200000,12.0822],[1271721600000,12.0504],[1271808000000,12.0708],[1271894400000,12.0273],[1271980800000,12.0127],[1272067200000,11.9908],[1272153600000,11.9908],[1272240000000,11.9908],[1272326400000,11.9918],[1272412800000,11.9886],[1272499200000,11.9405],[1272585600000,11.9551]], 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: [[1270080000000, 12.032059],[1270080000000, 12.032059],[1270166400000, 12.044073],[1270252800000, 12.044073],[1270339200000, 12.044073],[1270425600000, 12.044073],[1270512000000, 12.044073],[1270598400000, 12.004866],[1270684800000, 11.982435],[1270771200000, 11.995914],[1270857600000, 12.021378],[1270944000000, 12.021378],[1271030400000, 12.021378],[1271116800000, 12.089695],[1271203200000, 12.096881],[1271289600000, 12.094408],[1271376000000, 12.076839],[1271462400000, 12.082196],[1271548800000, 12.082196],[1271635200000, 12.082196],[1271721600000, 12.050422],[1271808000000, 12.070777],[1271894400000, 12.027332],[1271980800000, 12.012719],[1272067200000, 11.990820],[1272153600000, 11.990820],[1272240000000, 11.990820],[1272326400000, 11.991836],[1272412800000, 11.988613],[1272499200000, 11.940463],[1272585600000, 11.955051]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });