$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1162339200000,3.46286],[1162425600000,3.46826],[1162512000000,3.45294],[1162598400000,3.44367],[1162684800000,3.44367],[1162771200000,3.44367],[1162857600000,3.48747],[1162944000000,3.49462],[1163030400000,3.46373],[1163116800000,3.47886],[1163203200000,3.49264],[1163289600000,3.49264],[1163376000000,3.49264],[1163462400000,3.47557],[1163548800000,3.48835],[1163635200000,3.48246],[1163721600000,3.50462],[1163808000000,3.49489],[1163894400000,3.49489],[1163980800000,3.49489],[1164067200000,3.46017],[1164153600000,3.45308],[1164240000000,3.43581],[1164326400000,3.42834],[1164412800000,3.42374],[1164499200000,3.42374],[1164585600000,3.42374],[1164672000000,3.4403],[1164758400000,3.40998],[1164844800000,3.43729]], 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: [[1162339200000, 3.462857],[1162339200000, 3.462857],[1162425600000, 3.468256],[1162512000000, 3.452943],[1162598400000, 3.443673],[1162684800000, 3.443673],[1162771200000, 3.443673],[1162857600000, 3.487473],[1162944000000, 3.494615],[1163030400000, 3.463725],[1163116800000, 3.478859],[1163203200000, 3.492645],[1163289600000, 3.492645],[1163376000000, 3.492645],[1163462400000, 3.475566],[1163548800000, 3.488349],[1163635200000, 3.482458],[1163721600000, 3.504618],[1163808000000, 3.494891],[1163894400000, 3.494891],[1163980800000, 3.494891],[1164067200000, 3.460170],[1164153600000, 3.453079],[1164240000000, 3.435813],[1164326400000, 3.428336],[1164412800000, 3.423738],[1164499200000, 3.423738],[1164585600000, 3.423738],[1164672000000, 3.440296],[1164758400000, 3.409982],[1164844800000, 3.437292]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });