$(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: [[1251763200000,5.30815],[1251849600000,5.29853],[1251936000000,5.2783],[1252022400000,5.31185],[1252108800000,5.32328],[1252195200000,5.32328],[1252281600000,5.32328],[1252368000000,5.36017],[1252454400000,5.37803],[1252540800000,5.36027],[1252627200000,5.30661],[1252713600000,5.33794],[1252800000000,5.33794],[1252886400000,5.33794],[1252972800000,5.32846],[1253059200000,5.36933],[1253145600000,5.41275],[1253232000000,5.44072],[1253318400000,5.42785],[1253404800000,5.42785],[1253491200000,5.42785],[1253577600000,5.3652],[1253664000000,5.40812],[1253750400000,5.40033],[1253836800000,5.40917],[1253923200000,5.39326],[1254009600000,5.39326],[1254096000000,5.39326],[1254182400000,5.36613],[1254268800000,5.37535]], 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: [[1251763200000, 5.308147],[1251763200000, 5.308147],[1251849600000, 5.298530],[1251936000000, 5.278296],[1252022400000, 5.311846],[1252108800000, 5.323282],[1252195200000, 5.323282],[1252281600000, 5.323282],[1252368000000, 5.360174],[1252454400000, 5.378030],[1252540800000, 5.360267],[1252627200000, 5.306615],[1252713600000, 5.337940],[1252800000000, 5.337940],[1252886400000, 5.337940],[1252972800000, 5.328461],[1253059200000, 5.369330],[1253145600000, 5.412750],[1253232000000, 5.440722],[1253318400000, 5.427854],[1253404800000, 5.427854],[1253491200000, 5.427854],[1253577600000, 5.365197],[1253664000000, 5.408121],[1253750400000, 5.400334],[1253836800000, 5.409168],[1253923200000, 5.393258],[1254009600000, 5.393258],[1254096000000, 5.393258],[1254182400000, 5.366129],[1254268800000, 5.375345]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });