$(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: 'Курс HUF, грн'}, 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: 'Курс HUF', data: [[1214870400000,0.0320331],[1214956800000,0.0324198],[1215043200000,0.0324381],[1215129600000,0.0325416],[1215216000000,0.0324405],[1215302400000,0.0324405],[1215388800000,0.0324405],[1215475200000,0.0325229],[1215561600000,0.0328642],[1215648000000,0.0330111],[1215734400000,0.0329807],[1215820800000,0.0331194],[1215907200000,0.0331194],[1215993600000,0.0331194],[1216080000000,0.0333261],[1216166400000,0.0332502],[1216252800000,0.0330983],[1216339200000,0.033335],[1216425600000,0.0335508],[1216512000000,0.0335508],[1216598400000,0.0335508],[1216684800000,0.0334639],[1216771200000,0.0336351],[1216857600000,0.0328296],[1216944000000,0.0326821],[1217030400000,0.0329356],[1217116800000,0.0329356],[1217203200000,0.0329356],[1217289600000,0.0330341],[1217376000000,0.0329726],[1217462400000,0.0325955]], 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, 0.032033],[1214870400000, 0.032033],[1214956800000, 0.032420],[1215043200000, 0.032438],[1215129600000, 0.032542],[1215216000000, 0.032440],[1215302400000, 0.032440],[1215388800000, 0.032440],[1215475200000, 0.032523],[1215561600000, 0.032864],[1215648000000, 0.033011],[1215734400000, 0.032981],[1215820800000, 0.033119],[1215907200000, 0.033119],[1215993600000, 0.033119],[1216080000000, 0.033326],[1216166400000, 0.033250],[1216252800000, 0.033098],[1216339200000, 0.033335],[1216425600000, 0.033551],[1216512000000, 0.033551],[1216598400000, 0.033551],[1216684800000, 0.033464],[1216771200000, 0.033635],[1216857600000, 0.032830],[1216944000000, 0.032682],[1217030400000, 0.032936],[1217116800000, 0.032936],[1217203200000, 0.032936],[1217289600000, 0.033034],[1217376000000, 0.032973],[1217462400000, 0.032595]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });