$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1109635200000,4.2992],[1109721600000,4.29467],[1109808000000,4.26237],[1109894400000,4.26197],[1109980800000,4.25834],[1110067200000,4.25834],[1110153600000,4.25834],[1110240000000,4.25834],[1110326400000,4.25834],[1110412800000,4.37909],[1110499200000,4.40844],[1110585600000,4.39238],[1110672000000,4.39238],[1110758400000,4.39238],[1110844800000,4.38221],[1110931200000,4.39705],[1111017600000,4.3987],[1111104000000,4.38722],[1111190400000,4.38422],[1111276800000,4.38422],[1111363200000,4.38422],[1111449600000,null],[1111536000000,4.39178],[1111622400000,4.35231],[1111708800000,4.33672],[1111795200000,4.33672],[1111881600000,4.33672],[1111968000000,4.33672],[1112054400000,4.33672],[1112140800000,4.35254],[1112227200000,4.35763]], 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: [[1109635200000, 4.299195],[1109635200000, 4.299195],[1109721600000, 4.294673],[1109808000000, 4.262370],[1109894400000, 4.261967],[1109980800000, 4.258336],[1110067200000, 4.258336],[1110153600000, 4.258336],[1110240000000, 4.258336],[1110326400000, 4.258336],[1110412800000, 4.379092],[1110499200000, 4.408442],[1110585600000, 4.392380],[1110672000000, 4.392380],[1110758400000, 4.392380],[1110844800000, 4.382212],[1110931200000, 4.397046],[1111017600000, 4.398698],[1111104000000, 4.387221],[1111190400000, 4.384216],[1111276800000, 4.384216],[1111363200000, 4.384216],[1111536000000, 4.391777],[1111622400000, 4.352308],[1111708800000, 4.336722],[1111795200000, 4.336722],[1111881600000, 4.336722],[1111968000000, 4.336722],[1112054400000, 4.336722],[1112140800000, 4.352542],[1112227200000, 4.357628]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });