$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1214870400000,2.26784],[1214956800000,2.27597],[1215043200000,2.28298],[1215129600000,2.30064],[1215216000000,2.28084],[1215302400000,2.28084],[1215388800000,2.28084],[1215475200000,2.2879],[1215561600000,2.30081],[1215648000000,2.32605],[1215734400000,2.32579],[1215820800000,2.34486],[1215907200000,2.34486],[1215993600000,2.34486],[1216080000000,2.35822],[1216166400000,2.37475],[1216252800000,2.38727],[1216339200000,2.37983],[1216425600000,2.3782],[1216512000000,2.3782],[1216598400000,2.3782],[1216684800000,2.38274],[1216771200000,2.38479],[1216857600000,2.34418],[1216944000000,2.35764],[1217030400000,2.37521],[1217116800000,2.37521],[1217203200000,2.37521],[1217289600000,2.37936],[1217376000000,2.37277],[1217462400000,2.34675]], 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, 2.267841],[1214870400000, 2.267841],[1214956800000, 2.275972],[1215043200000, 2.282984],[1215129600000, 2.300635],[1215216000000, 2.280836],[1215302400000, 2.280836],[1215388800000, 2.280836],[1215475200000, 2.287901],[1215561600000, 2.300814],[1215648000000, 2.326047],[1215734400000, 2.325793],[1215820800000, 2.344862],[1215907200000, 2.344862],[1215993600000, 2.344862],[1216080000000, 2.358223],[1216166400000, 2.374753],[1216252800000, 2.387269],[1216339200000, 2.379833],[1216425600000, 2.378198],[1216512000000, 2.378198],[1216598400000, 2.378198],[1216684800000, 2.382737],[1216771200000, 2.384795],[1216857600000, 2.344177],[1216944000000, 2.357635],[1217030400000, 2.375206],[1217116800000, 2.375206],[1217203200000, 2.375206],[1217289600000, 2.379364],[1217376000000, 2.372769],[1217462400000, 2.346754]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });