$(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: [[1041379200000,0.16777],[1041465600000,0.16777],[1041552000000,0.16777],[1041638400000,0.16777],[1041724800000,0.16777],[1041811200000,0.16777],[1041897600000,0.16777],[1041984000000,0.16724],[1042070400000,0.16726],[1042156800000,0.16752],[1042243200000,0.16752],[1042329600000,0.16752],[1042416000000,0.16756],[1042502400000,0.16756],[1042588800000,0.16763],[1042675200000,0.16766],[1042761600000,0.16758],[1042848000000,0.16758],[1042934400000,0.16758],[1043020800000,0.16758],[1043107200000,0.16758],[1043193600000,0.1677],[1043280000000,0.16765],[1043366400000,0.16769],[1043452800000,0.16769],[1043539200000,0.16769],[1043625600000,0.16769],[1043712000000,0.1677],[1043798400000,0.1677],[1043884800000,0.1677],[1043971200000,0.16752]], 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: [[1041379200000, 0.167770],[1041379200000, 0.167770],[1041465600000, 0.167770],[1041552000000, 0.167770],[1041638400000, 0.167770],[1041724800000, 0.167770],[1041811200000, 0.167770],[1041897600000, 0.167770],[1041984000000, 0.167240],[1042070400000, 0.167260],[1042156800000, 0.167520],[1042243200000, 0.167520],[1042329600000, 0.167520],[1042416000000, 0.167560],[1042502400000, 0.167560],[1042588800000, 0.167630],[1042675200000, 0.167660],[1042761600000, 0.167580],[1042848000000, 0.167580],[1042934400000, 0.167580],[1043020800000, 0.167580],[1043107200000, 0.167580],[1043193600000, 0.167700],[1043280000000, 0.167650],[1043366400000, 0.167690],[1043452800000, 0.167690],[1043539200000, 0.167690],[1043625600000, 0.167690],[1043712000000, 0.167700],[1043798400000, 0.167700],[1043884800000, 0.167700],[1043971200000, 0.167520]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });