$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1214870400000,0.20671],[1214956800000,0.20663],[1215043200000,0.20711],[1215129600000,0.20747],[1215216000000,0.20585],[1215302400000,0.20585],[1215388800000,0.20585],[1215475200000,0.20545],[1215561600000,0.20597],[1215648000000,0.20678],[1215734400000,0.20659],[1215820800000,0.20717],[1215907200000,0.20717],[1215993600000,0.20717],[1216080000000,0.20841],[1216166400000,0.2093],[1216252800000,0.20898],[1216339200000,0.20841],[1216425600000,0.20868],[1216512000000,0.20868],[1216598400000,0.20868],[1216684800000,0.20851],[1216771200000,0.20866],[1216857600000,0.20756],[1216944000000,0.20715],[1217030400000,0.20734],[1217116800000,0.20734],[1217203200000,0.20734],[1217289600000,0.20733],[1217376000000,0.20768],[1217462400000,0.20665]], 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.206710],[1214870400000, 0.206710],[1214956800000, 0.206630],[1215043200000, 0.207110],[1215129600000, 0.207470],[1215216000000, 0.205850],[1215302400000, 0.205850],[1215388800000, 0.205850],[1215475200000, 0.205450],[1215561600000, 0.205970],[1215648000000, 0.206780],[1215734400000, 0.206590],[1215820800000, 0.207170],[1215907200000, 0.207170],[1215993600000, 0.207170],[1216080000000, 0.208410],[1216166400000, 0.209300],[1216252800000, 0.208980],[1216339200000, 0.208410],[1216425600000, 0.208680],[1216512000000, 0.208680],[1216598400000, 0.208680],[1216684800000, 0.208510],[1216771200000, 0.208660],[1216857600000, 0.207560],[1216944000000, 0.207150],[1217030400000, 0.207340],[1217116800000, 0.207340],[1217203200000, 0.207340],[1217289600000, 0.207330],[1217376000000, 0.207680],[1217462400000, 0.206650]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });