$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1136246400000,8.53041],[1136332800000,8.53041],[1136419200000,8.53041],[1136505600000,8.69191],[1136592000000,8.69191],[1136678400000,8.69191],[1136764800000,8.69191],[1136851200000,8.69191],[1136937600000,8.66209],[1137024000000,8.66209],[1137110400000,8.73702],[1137196800000,8.66209],[1137283200000,8.66209],[1137369600000,8.66209],[1137456000000,8.72193],[1137542400000,8.7069],[1137628800000,8.69191],[1137715200000,8.7069],[1137801600000,8.67698],[1137888000000,8.67698],[1137974400000,8.67698],[1138060800000,8.79791],[1138147200000,8.84413],[1138233600000,8.81326],[1138320000000,8.79791],[1138406400000,8.76736],[1138492800000,8.76736],[1138579200000,8.76736],[1138665600000,8.69191]], 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: [[1136246400000, 8.530405],[1136246400000, 8.530405],[1136332800000, 8.530405],[1136419200000, 8.530405],[1136505600000, 8.691910],[1136592000000, 8.691910],[1136678400000, 8.691910],[1136764800000, 8.691910],[1136851200000, 8.691910],[1136937600000, 8.662093],[1137024000000, 8.662093],[1137110400000, 8.737024],[1137196800000, 8.662093],[1137283200000, 8.662093],[1137369600000, 8.662093],[1137456000000, 8.721934],[1137542400000, 8.706897],[1137628800000, 8.691910],[1137715200000, 8.706897],[1137801600000, 8.676976],[1137888000000, 8.676976],[1137974400000, 8.676976],[1138060800000, 8.797909],[1138147200000, 8.844133],[1138233600000, 8.813264],[1138320000000, 8.797909],[1138406400000, 8.767361],[1138492800000, 8.767361],[1138579200000, 8.767361],[1138665600000, 8.691910]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });