$(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: 'Курс CNY, грн'}, 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: 'Курс CNY', data: [[1139184000000,0.626862],[1139270400000,0.626862],[1139356800000,0.626815],[1139443200000,0.626979],[1139529600000,0.626878],[1139616000000,0.627205],[1139702400000,0.627205],[1139788800000,0.627205],[1139875200000,0.627547],[1139961600000,0.627508],[1140048000000,0.627477],[1140134400000,0.627368],[1140220800000,0.627384],[1140307200000,0.627384],[1140393600000,0.627384],[1140480000000,0.627462],[1140566400000,0.627446],[1140652800000,0.627353],[1140739200000,0.627407],[1140825600000,0.62786],[1140912000000,0.62786],[1140998400000,0.62786],[1141084800000,0.627953]], 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: [[1139184000000, 0.626862],[1139184000000, 0.626862],[1139270400000, 0.626862],[1139356800000, 0.626815],[1139443200000, 0.626979],[1139529600000, 0.626878],[1139616000000, 0.627205],[1139702400000, 0.627205],[1139788800000, 0.627205],[1139875200000, 0.627547],[1139961600000, 0.627508],[1140048000000, 0.627477],[1140134400000, 0.627368],[1140220800000, 0.627384],[1140307200000, 0.627384],[1140393600000, 0.627384],[1140480000000, 0.627462],[1140566400000, 0.627446],[1140652800000, 0.627353],[1140739200000, 0.627407],[1140825600000, 0.627860],[1140912000000, 0.627860],[1140998400000, 0.627860],[1141084800000, 0.627953]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });