$(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: 'Курс ISK, грн'}, 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: 'Курс ISK', data: [[1185926400000,0.08276],[1186012800000,0.080662],[1186099200000,0.080489],[1186185600000,0.080741],[1186272000000,0.080741],[1186358400000,0.080741],[1186444800000,0.079215],[1186531200000,0.079949],[1186617600000,0.079775],[1186704000000,0.078138],[1186790400000,0.076093],[1186876800000,0.076093],[1186963200000,0.076093],[1187049600000,0.077025],[1187136000000,0.07685],[1187222400000,0.075015],[1187308800000,0.07283],[1187395200000,0.073159],[1187481600000,0.073159],[1187568000000,0.073159],[1187654400000,0.074645],[1187740800000,0.07556],[1187827200000,0.07716],[1187913600000,0.078449],[1188000000000,0.078449],[1188086400000,0.078449],[1188172800000,0.078449],[1188259200000,0.07888],[1188345600000,0.079132],[1188432000000,0.078652],[1188518400000,0.079265]], 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: [[1185926400000, 0.082760],[1185926400000, 0.082760],[1186012800000, 0.080662],[1186099200000, 0.080489],[1186185600000, 0.080741],[1186272000000, 0.080741],[1186358400000, 0.080741],[1186444800000, 0.079215],[1186531200000, 0.079949],[1186617600000, 0.079775],[1186704000000, 0.078138],[1186790400000, 0.076093],[1186876800000, 0.076093],[1186963200000, 0.076093],[1187049600000, 0.077025],[1187136000000, 0.076850],[1187222400000, 0.075015],[1187308800000, 0.072830],[1187395200000, 0.073159],[1187481600000, 0.073159],[1187568000000, 0.073159],[1187654400000, 0.074645],[1187740800000, 0.075560],[1187827200000, 0.077160],[1187913600000, 0.078449],[1188000000000, 0.078449],[1188086400000, 0.078449],[1188172800000, 0.078449],[1188259200000, 0.078880],[1188345600000, 0.079132],[1188432000000, 0.078652],[1188518400000, 0.079265]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });