$(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: [[1488326400000,0.086852],[1488412800000,0.08662],[1488499200000,0.086004],[1488585600000,0.085426],[1488672000000,0.085426],[1488758400000,0.085426],[1488844800000,0.08544],[1488931200000,0.085542],[1489017600000,0.085542],[1489104000000,0.084936],[1489190400000,0.084317],[1489276800000,0.084317],[1489363200000,0.084317],[1489449600000,0.084556],[1489536000000,0.084615],[1489622400000,0.08426],[1489708800000,0.084938],[1489795200000,0.085413],[1489881600000,0.085413],[1489968000000,0.085413],[1490054400000,0.08521],[1490140800000,0.085093],[1490227200000,0.085311],[1490313600000,0.085748],[1490400000000,0.085685],[1490486400000,0.085685],[1490572800000,0.085685],[1490659200000,0.086084],[1490745600000,0.086144],[1490832000000,0.085801],[1490918400000,0.085695]], 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: [[1488326400000, 0.086852],[1488326400000, 0.086852],[1488412800000, 0.086620],[1488499200000, 0.086004],[1488585600000, 0.085426],[1488672000000, 0.085426],[1488758400000, 0.085426],[1488844800000, 0.085440],[1488931200000, 0.085542],[1489017600000, 0.085542],[1489104000000, 0.084936],[1489190400000, 0.084317],[1489276800000, 0.084317],[1489363200000, 0.084317],[1489449600000, 0.084556],[1489536000000, 0.084615],[1489622400000, 0.084260],[1489708800000, 0.084938],[1489795200000, 0.085413],[1489881600000, 0.085413],[1489968000000, 0.085413],[1490054400000, 0.085210],[1490140800000, 0.085093],[1490227200000, 0.085311],[1490313600000, 0.085748],[1490400000000, 0.085685],[1490486400000, 0.085685],[1490572800000, 0.085685],[1490659200000, 0.086084],[1490745600000, 0.086144],[1490832000000, 0.085801],[1490918400000, 0.085695]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });