$(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: 'Курс MDL, грн'}, 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: 'Курс MDL', data: [[1283299200000,0.646456],[1283385600000,0.647921],[1283472000000,0.649132],[1283558400000,0.648803],[1283644800000,0.648803],[1283731200000,0.648803],[1283817600000,0.646745],[1283904000000,0.643707],[1283990400000,0.641514],[1284076800000,0.640812],[1284163200000,0.639791],[1284249600000,0.639791],[1284336000000,0.639791],[1284422400000,0.638639],[1284508800000,0.638796],[1284595200000,0.638506],[1284681600000,0.639063],[1284768000000,0.640313],[1284854400000,0.640313],[1284940800000,0.640313],[1285027200000,0.647327],[1285113600000,0.650966],[1285200000000,0.65125],[1285286400000,0.650795],[1285372800000,0.650642],[1285459200000,0.650642],[1285545600000,0.650642],[1285632000000,0.651387],[1285718400000,0.652574],[1285804800000,0.656439]], 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: [[1283299200000, 0.646456],[1283299200000, 0.646456],[1283385600000, 0.647921],[1283472000000, 0.649132],[1283558400000, 0.648803],[1283644800000, 0.648803],[1283731200000, 0.648803],[1283817600000, 0.646745],[1283904000000, 0.643707],[1283990400000, 0.641514],[1284076800000, 0.640812],[1284163200000, 0.639791],[1284249600000, 0.639791],[1284336000000, 0.639791],[1284422400000, 0.638639],[1284508800000, 0.638796],[1284595200000, 0.638506],[1284681600000, 0.639063],[1284768000000, 0.640313],[1284854400000, 0.640313],[1284940800000, 0.640313],[1285027200000, 0.647327],[1285113600000, 0.650966],[1285200000000, 0.651250],[1285286400000, 0.650795],[1285372800000, 0.650642],[1285459200000, 0.650642],[1285545600000, 0.650642],[1285632000000, 0.651387],[1285718400000, 0.652574],[1285804800000, 0.656439]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });