$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1107216000000,0.00108173],[1107302400000,0.00108166],[1107388800000,0.00108112],[1107475200000,0.00108102],[1107561600000,0.0010814],[1107648000000,0.0010814],[1107734400000,0.0010814],[1107820800000,0.00108129],[1107907200000,0.00108077],[1107993600000,0.00108071],[1108080000000,0.00108113],[1108166400000,0.00108107],[1108252800000,0.00108107],[1108339200000,0.00108107],[1108425600000,0.00108173],[1108512000000,0.00108217],[1108598400000,0.00108255],[1108684800000,0.00108233],[1108771200000,0.00108277],[1108857600000,0.00108277],[1108944000000,0.00108277],[1109030400000,0.00108255],[1109116800000,0.00108322],[1109203200000,0.00108322],[1109289600000,0.00108364],[1109376000000,0.00108342],[1109462400000,0.00108342],[1109548800000,0.00108342]], 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: [[1107216000000, 0.001082],[1107216000000, 0.001082],[1107302400000, 0.001082],[1107388800000, 0.001081],[1107475200000, 0.001081],[1107561600000, 0.001081],[1107648000000, 0.001081],[1107734400000, 0.001081],[1107820800000, 0.001081],[1107907200000, 0.001081],[1107993600000, 0.001081],[1108080000000, 0.001081],[1108166400000, 0.001081],[1108252800000, 0.001081],[1108339200000, 0.001081],[1108425600000, 0.001082],[1108512000000, 0.001082],[1108598400000, 0.001083],[1108684800000, 0.001082],[1108771200000, 0.001083],[1108857600000, 0.001083],[1108944000000, 0.001083],[1109030400000, 0.001083],[1109116800000, 0.001083],[1109203200000, 0.001083],[1109289600000, 0.001084],[1109376000000, 0.001083],[1109462400000, 0.001083],[1109548800000, 0.001083]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });