$(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: 'Курс LVL, грн'}, 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: 'Курс LVL', data: [[1109635200000,10.017],[1109721600000,9.96015],[1109808000000,9.92247],[1109894400000,9.90392],[1109980800000,9.9028],[1110067200000,9.88433],[1110153600000,9.88433],[1110240000000,9.88433],[1110326400000,9.88433],[1110412800000,10.0522],[1110499200000,10.1283],[1110585600000,10.1069],[1110672000000,10.1069],[1110758400000,10.1069],[1110844800000,10.1241],[1110931200000,10.0646],[1111017600000,10.0259],[1111104000000,10.1011],[1111190400000,10.0599],[1111276800000,10.0599],[1111363200000,10.0599],[1111449600000,null],[1111536000000,9.90786],[1111622400000,9.83389],[1111708800000,9.83445],[1111795200000,9.83445],[1111881600000,9.83445],[1111968000000,9.83445],[1112054400000,9.76174],[1112140800000,9.70754],[1112227200000,9.72523]], 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, 10.017013],[1109635200000, 10.017013],[1109721600000, 9.960150],[1109808000000, 9.922472],[1109894400000, 9.903925],[1109980800000, 9.902804],[1110067200000, 9.884328],[1110153600000, 9.884328],[1110240000000, 9.884328],[1110326400000, 9.884328],[1110412800000, 10.052182],[1110499200000, 10.128298],[1110585600000, 10.106870],[1110672000000, 10.106870],[1110758400000, 10.106870],[1110844800000, 10.124092],[1110931200000, 10.064639],[1111017600000, 10.025947],[1111104000000, 10.101145],[1111190400000, 10.059886],[1111276800000, 10.059886],[1111363200000, 10.059886],[1111536000000, 9.907865],[1111622400000, 9.833892],[1111708800000, 9.834451],[1111795200000, 9.834451],[1111881600000, 9.834451],[1111968000000, 9.834451],[1112054400000, 9.761738],[1112140800000, 9.707537],[1112227200000, 9.725230]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });