$(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: [[1009843200000,0.17581],[1009929600000,0.17581],[1010016000000,0.17581],[1010102400000,0.17596],[1010188800000,0.17596],[1010275200000,0.17596],[1010361600000,0.17596],[1010448000000,0.17596],[1010534400000,0.17622],[1010620800000,0.17372],[1010707200000,0.17448],[1010793600000,0.17448],[1010880000000,0.17448],[1010966400000,0.17448],[1011052800000,0.17446],[1011139200000,0.17434],[1011225600000,0.17434],[1011312000000,0.17391],[1011398400000,0.17391],[1011484800000,0.17391],[1011571200000,0.17391],[1011657600000,0.17391],[1011744000000,0.17413],[1011830400000,0.17412],[1011916800000,0.1739],[1012003200000,0.1739],[1012089600000,0.1739],[1012176000000,0.1739],[1012262400000,0.17352],[1012348800000,0.17341],[1012435200000,0.17341]], 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: [[1009843200000, 0.175810],[1009843200000, 0.175810],[1009929600000, 0.175810],[1010016000000, 0.175810],[1010102400000, 0.175960],[1010188800000, 0.175960],[1010275200000, 0.175960],[1010361600000, 0.175960],[1010448000000, 0.175960],[1010534400000, 0.176220],[1010620800000, 0.173720],[1010707200000, 0.174480],[1010793600000, 0.174480],[1010880000000, 0.174480],[1010966400000, 0.174480],[1011052800000, 0.174460],[1011139200000, 0.174340],[1011225600000, 0.174340],[1011312000000, 0.173910],[1011398400000, 0.173910],[1011484800000, 0.173910],[1011571200000, 0.173910],[1011657600000, 0.173910],[1011744000000, 0.174130],[1011830400000, 0.174120],[1011916800000, 0.173900],[1012003200000, 0.173900],[1012089600000, 0.173900],[1012176000000, 0.173900],[1012262400000, 0.173520],[1012348800000, 0.173410],[1012435200000, 0.173410]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });