$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1267401600000,2.80351],[1267488000000,2.80351],[1267574400000,2.80175],[1267660800000,2.8014],[1267747200000,2.80147],[1267833600000,2.80133],[1267920000000,2.80133],[1268006400000,2.80133],[1268092800000,2.80133],[1268179200000,2.8014],[1268265600000,2.80084],[1268352000000,2.80014],[1268438400000,2.7993],[1268524800000,2.7993],[1268611200000,2.7993],[1268697600000,2.79884],[1268784000000,2.79884],[1268870400000,2.7986],[1268956800000,2.7986],[1269043200000,2.79305],[1269129600000,2.79305],[1269216000000,2.79305],[1269302400000,2.79102],[1269388800000,2.78951],[1269475200000,2.78421],[1269561600000,2.78281],[1269648000000,2.78246],[1269734400000,2.78246],[1269820800000,2.78246],[1269907200000,2.7807],[1269993600000,2.7807]], 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: [[1267401600000, 2.803509],[1267401600000, 2.803509],[1267488000000, 2.803509],[1267574400000, 2.801754],[1267660800000, 2.801404],[1267747200000, 2.801474],[1267833600000, 2.801333],[1267920000000, 2.801333],[1268006400000, 2.801333],[1268092800000, 2.801333],[1268179200000, 2.801404],[1268265600000, 2.800842],[1268352000000, 2.800140],[1268438400000, 2.799298],[1268524800000, 2.799298],[1268611200000, 2.799298],[1268697600000, 2.798842],[1268784000000, 2.798842],[1268870400000, 2.798596],[1268956800000, 2.798596],[1269043200000, 2.793053],[1269129600000, 2.793053],[1269216000000, 2.793053],[1269302400000, 2.791018],[1269388800000, 2.789509],[1269475200000, 2.784211],[1269561600000, 2.782807],[1269648000000, 2.782456],[1269734400000, 2.782456],[1269820800000, 2.782456],[1269907200000, 2.780702],[1269993600000, 2.780702]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });