$(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: 'Курс TRY, грн'}, 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: 'Курс TRY', data: [[1364774400000,4.40937],[1364860800000,4.40937],[1364947200000,4.42944],[1365033600000,4.41862],[1365120000000,4.42071],[1365206400000,4.44155],[1365292800000,4.44155],[1365379200000,4.44155],[1365465600000,4.46904],[1365552000000,4.48334],[1365638400000,4.47567],[1365724800000,4.46898],[1365811200000,4.46729],[1365897600000,4.46729],[1365984000000,4.46729],[1366070400000,4.46555],[1366156800000,4.46098],[1366243200000,4.45624],[1366329600000,4.45174],[1366416000000,4.4479],[1366502400000,4.4479],[1366588800000,4.4479],[1366675200000,4.43142],[1366761600000,4.4224],[1366848000000,4.42822],[1366934400000,4.44131],[1367020800000,4.43642],[1367107200000,4.43642],[1367193600000,4.43642],[1367280000000,4.45611]], 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: [[1364774400000, 4.409373],[1364774400000, 4.409373],[1364860800000, 4.409373],[1364947200000, 4.429440],[1365033600000, 4.418625],[1365120000000, 4.420706],[1365206400000, 4.441547],[1365292800000, 4.441547],[1365379200000, 4.441547],[1365465600000, 4.469038],[1365552000000, 4.483341],[1365638400000, 4.475670],[1365724800000, 4.468981],[1365811200000, 4.467291],[1365897600000, 4.467291],[1365984000000, 4.467291],[1366070400000, 4.465552],[1366156800000, 4.460980],[1366243200000, 4.456244],[1366329600000, 4.451741],[1366416000000, 4.447904],[1366502400000, 4.447904],[1366588800000, 4.447904],[1366675200000, 4.431416],[1366761600000, 4.422398],[1366848000000, 4.428223],[1366934400000, 4.441310],[1367020800000, 4.436422],[1367107200000, 4.436422],[1367193600000, 4.436422],[1367280000000, 4.456112]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });