$(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: [[1538352000000,0.077864],[1538438400000,0.077433],[1538524800000,0.078404],[1538611200000,0.07776],[1538697600000,0.076729],[1538784000000,0.075151],[1538870400000,0.075151],[1538956800000,0.075151],[1539043200000,0.07545],[1539129600000,0.075453],[1539216000000,0.07595],[1539302400000,0.075227],[1539388800000,0.075475],[1539475200000,0.075475],[1539561600000,0.075475],[1539648000000,0.075475],[1539734400000,0.076133],[1539820800000,0.076851],[1539907200000,0.07695],[1539993600000,0.07691],[1540080000000,0.07691],[1540166400000,0.07691],[1540252800000,0.076829],[1540339200000,0.077944],[1540425600000,0.077123],[1540512000000,0.077106],[1540598400000,0.076697],[1540684800000,0.076697],[1540771200000,0.076697],[1540857600000,0.076521],[1540944000000,0.07642]], 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: [[1538352000000, 0.077864],[1538352000000, 0.077864],[1538438400000, 0.077433],[1538524800000, 0.078404],[1538611200000, 0.077760],[1538697600000, 0.076729],[1538784000000, 0.075151],[1538870400000, 0.075151],[1538956800000, 0.075151],[1539043200000, 0.075450],[1539129600000, 0.075453],[1539216000000, 0.075950],[1539302400000, 0.075227],[1539388800000, 0.075475],[1539475200000, 0.075475],[1539561600000, 0.075475],[1539648000000, 0.075475],[1539734400000, 0.076133],[1539820800000, 0.076851],[1539907200000, 0.076950],[1539993600000, 0.076910],[1540080000000, 0.076910],[1540166400000, 0.076910],[1540252800000, 0.076829],[1540339200000, 0.077944],[1540425600000, 0.077123],[1540512000000, 0.077106],[1540598400000, 0.076697],[1540684800000, 0.076697],[1540771200000, 0.076697],[1540857600000, 0.076521],[1540944000000, 0.076420]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });