$(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: 'Курс USD, грн'}, 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: 'Курс USD', data: [[1214870400000,4.8489],[1214956800000,4.8493],[1215043200000,4.8495],[1215129600000,4.8498],[1215216000000,4.8401],[1215302400000,4.8401],[1215388800000,4.8401],[1215475200000,4.8401],[1215561600000,4.8407],[1215648000000,4.8417],[1215734400000,4.8417],[1215820800000,4.8421],[1215907200000,4.8421],[1215993600000,4.8421],[1216080000000,4.8413],[1216166400000,4.8401],[1216252800000,4.8408],[1216339200000,4.8403],[1216425600000,4.84],[1216512000000,4.84],[1216598400000,4.84],[1216684800000,4.84],[1216771200000,4.84],[1216857600000,4.8407],[1216944000000,4.8428],[1217030400000,4.8428],[1217116800000,4.8428],[1217203200000,4.8428],[1217289600000,4.8435],[1217376000000,4.8448],[1217462400000,4.8451]], 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, 4.848900],[1214870400000, 4.848900],[1214956800000, 4.849300],[1215043200000, 4.849500],[1215129600000, 4.849800],[1215216000000, 4.840100],[1215302400000, 4.840100],[1215388800000, 4.840100],[1215475200000, 4.840100],[1215561600000, 4.840700],[1215648000000, 4.841700],[1215734400000, 4.841700],[1215820800000, 4.842100],[1215907200000, 4.842100],[1215993600000, 4.842100],[1216080000000, 4.841300],[1216166400000, 4.840100],[1216252800000, 4.840800],[1216339200000, 4.840300],[1216425600000, 4.840000],[1216512000000, 4.840000],[1216598400000, 4.840000],[1216684800000, 4.840000],[1216771200000, 4.840000],[1216857600000, 4.840700],[1216944000000, 4.842800],[1217030400000, 4.842800],[1217116800000, 4.842800],[1217203200000, 4.842800],[1217289600000, 4.843500],[1217376000000, 4.844800],[1217462400000, 4.845100]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });