$(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: [[1275350400000,9.862],[1275436800000,9.862],[1275523200000,9.86262],[1275609600000,9.86224],[1275696000000,9.85604],[1275782400000,9.85604],[1275868800000,9.85604],[1275955200000,9.85567],[1276041600000,9.8549],[1276128000000,9.85083],[1276214400000,9.84934],[1276300800000,9.8492],[1276387200000,9.8492],[1276473600000,9.8492],[1276560000000,9.84808],[1276646400000,9.84721],[1276732800000,9.84681],[1276819200000,9.84374],[1276905600000,9.84312],[1276992000000,9.84312],[1277078400000,9.84312],[1277164800000,9.84163],[1277251200000,9.84003],[1277337600000,9.83928],[1277424000000,9.84001],[1277510400000,9.83752],[1277596800000,9.83752],[1277683200000,9.83752],[1277769600000,9.83752],[1277856000000,9.8358]], 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: [[1275350400000, 9.861996],[1275350400000, 9.861996],[1275436800000, 9.861996],[1275523200000, 9.862618],[1275609600000, 9.862245],[1275696000000, 9.856041],[1275782400000, 9.856041],[1275868800000, 9.856041],[1275955200000, 9.855668],[1276041600000, 9.854903],[1276128000000, 9.850834],[1276214400000, 9.849341],[1276300800000, 9.849197],[1276387200000, 9.849197],[1276473600000, 9.849197],[1276560000000, 9.848078],[1276646400000, 9.847207],[1276732800000, 9.846814],[1276819200000, 9.843742],[1276905600000, 9.843120],[1276992000000, 9.843120],[1277078400000, 9.843120],[1277164800000, 9.841627],[1277251200000, 9.840030],[1277337600000, 9.839283],[1277424000000, 9.840010],[1277510400000, 9.837522],[1277596800000, 9.837522],[1277683200000, 9.837522],[1277769600000, 9.837522],[1277856000000, 9.835800]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });