$(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: [[1170288000000,3.55434],[1170374400000,3.58903],[1170460800000,3.60082],[1170547200000,3.60082],[1170633600000,3.60082],[1170720000000,3.5883],[1170806400000,3.61152],[1170892800000,3.60057],[1170979200000,3.59221],[1171065600000,3.6073],[1171152000000,3.6073],[1171238400000,3.6073],[1171324800000,3.57509],[1171411200000,3.5994],[1171497600000,3.61105],[1171584000000,3.63318],[1171670400000,3.63816],[1171756800000,3.63816],[1171843200000,3.63816],[1171929600000,3.65159],[1172016000000,3.65179],[1172102400000,3.65038],[1172188800000,3.65463],[1172275200000,3.65557],[1172361600000,null],[1172448000000,3.65557],[1172534400000,3.64673],[1172620800000,3.59859]], 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: [[1170288000000, 3.554344],[1170288000000, 3.554344],[1170374400000, 3.589028],[1170460800000, 3.600821],[1170547200000, 3.600821],[1170633600000, 3.600821],[1170720000000, 3.588304],[1170806400000, 3.611524],[1170892800000, 3.600568],[1170979200000, 3.592211],[1171065600000, 3.607301],[1171152000000, 3.607301],[1171238400000, 3.607301],[1171324800000, 3.575094],[1171411200000, 3.599403],[1171497600000, 3.611047],[1171584000000, 3.633179],[1171670400000, 3.638163],[1171756800000, 3.638163],[1171843200000, 3.638163],[1171929600000, 3.651594],[1172016000000, 3.651791],[1172102400000, 3.650385],[1172188800000, 3.654627],[1172275200000, 3.655572],[1172448000000, 3.655572],[1172534400000, 3.646730],[1172620800000, 3.598594]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });