$(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: [[1475280000000,0.077317],[1475366400000,0.077317],[1475452800000,0.077317],[1475539200000,0.077354],[1475625600000,0.077534],[1475712000000,0.077831],[1475798400000,0.077817],[1475884800000,0.077973],[1475971200000,0.077973],[1476057600000,0.077973],[1476144000000,0.07776],[1476230400000,0.078251],[1476316800000,0.078036],[1476403200000,0.077833],[1476489600000,0.077833],[1476576000000,0.077833],[1476662400000,0.077833],[1476748800000,0.077721],[1476835200000,0.07727],[1476921600000,0.077347],[1477008000000,0.077758],[1477094400000,0.077438],[1477180800000,0.077438],[1477267200000,0.077438],[1477353600000,0.077642],[1477440000000,0.077533],[1477526400000,0.077243],[1477612800000,0.076767],[1477699200000,0.07645],[1477785600000,0.07645],[1477872000000,0.07645]], 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: [[1475280000000, 0.077317],[1475280000000, 0.077317],[1475366400000, 0.077317],[1475452800000, 0.077317],[1475539200000, 0.077354],[1475625600000, 0.077534],[1475712000000, 0.077831],[1475798400000, 0.077817],[1475884800000, 0.077973],[1475971200000, 0.077973],[1476057600000, 0.077973],[1476144000000, 0.077760],[1476230400000, 0.078251],[1476316800000, 0.078036],[1476403200000, 0.077833],[1476489600000, 0.077833],[1476576000000, 0.077833],[1476662400000, 0.077833],[1476748800000, 0.077721],[1476835200000, 0.077270],[1476921600000, 0.077347],[1477008000000, 0.077758],[1477094400000, 0.077438],[1477180800000, 0.077438],[1477267200000, 0.077438],[1477353600000, 0.077642],[1477440000000, 0.077533],[1477526400000, 0.077243],[1477612800000, 0.076767],[1477699200000, 0.076450],[1477785600000, 0.076450],[1477872000000, 0.076450]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });