$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1214870400000,5.96567],[1214956800000,5.97425],[1215043200000,5.97966],[1215129600000,5.99259],[1215216000000,5.97765],[1215302400000,5.97765],[1215388800000,5.97765],[1215475200000,5.97469],[1215561600000,5.98356],[1215648000000,5.98184],[1215734400000,5.9885],[1215820800000,5.99567],[1215907200000,5.99567],[1215993600000,5.99567],[1216080000000,6.00881],[1216166400000,6.0118],[1216252800000,6.01043],[1216339200000,6.00683],[1216425600000,6.00645],[1216512000000,6.00645],[1216598400000,6.00645],[1216684800000,6.00794],[1216771200000,6.01392],[1216857600000,6.00211],[1216944000000,5.99505],[1217030400000,5.99356],[1217116800000,5.99356],[1217203200000,5.99356],[1217289600000,5.99814],[1217376000000,6.00273],[1217462400000,5.989]], 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: [[1214870400000, 5.965674],[1214870400000, 5.965674],[1214956800000, 5.974252],[1215043200000, 5.979655],[1215129600000, 5.992586],[1215216000000, 5.977646],[1215302400000, 5.977646],[1215388800000, 5.977646],[1215475200000, 5.974694],[1215561600000, 5.983560],[1215648000000, 5.981838],[1215734400000, 5.988497],[1215820800000, 5.995666],[1215907200000, 5.995666],[1215993600000, 5.995666],[1216080000000, 6.008812],[1216166400000, 6.011800],[1216252800000, 6.010430],[1216339200000, 6.006826],[1216425600000, 6.006453],[1216512000000, 6.006453],[1216598400000, 6.006453],[1216684800000, 6.007944],[1216771200000, 6.013917],[1216857600000, 6.002108],[1216944000000, 5.995048],[1217030400000, 5.993564],[1217116800000, 5.993564],[1217203200000, 5.993564],[1217289600000, 5.998142],[1217376000000, 6.002726],[1217462400000, 5.988999]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });