$(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: 'Курс RUB, грн'}, 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: 'Курс RUB', data: [[1393632000000,0.26805],[1393718400000,0.26805],[1393804800000,0.26805],[1393891200000,0.27468],[1393977600000,0.26773],[1394064000000,0.26185],[1394150400000,0.25987],[1394236800000,0.2547],[1394323200000,0.2547],[1394409600000,0.2547],[1394496000000,0.2547],[1394582400000,0.25542],[1394668800000,0.2544],[1394755200000,0.25992],[1394841600000,0.26203],[1394928000000,0.26203],[1395014400000,0.26203],[1395100800000,0.26621],[1395187200000,0.27326],[1395273600000,0.27392],[1395360000000,0.27997],[1395446400000,0.28011],[1395532800000,0.28011],[1395619200000,0.28011],[1395705600000,0.2869],[1395792000000,0.29433],[1395878400000,0.30105],[1395964800000,0.30494],[1396051200000,0.30696],[1396137600000,0.30696],[1396224000000,0.30696]], 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: [[1393632000000, 0.268050],[1393632000000, 0.268050],[1393718400000, 0.268050],[1393804800000, 0.268050],[1393891200000, 0.274680],[1393977600000, 0.267730],[1394064000000, 0.261850],[1394150400000, 0.259870],[1394236800000, 0.254700],[1394323200000, 0.254700],[1394409600000, 0.254700],[1394496000000, 0.254700],[1394582400000, 0.255420],[1394668800000, 0.254400],[1394755200000, 0.259920],[1394841600000, 0.262030],[1394928000000, 0.262030],[1395014400000, 0.262030],[1395100800000, 0.266210],[1395187200000, 0.273260],[1395273600000, 0.273920],[1395360000000, 0.279970],[1395446400000, 0.280110],[1395532800000, 0.280110],[1395619200000, 0.280110],[1395705600000, 0.286900],[1395792000000, 0.294330],[1395878400000, 0.301050],[1395964800000, 0.304940],[1396051200000, 0.306960],[1396137600000, 0.306960],[1396224000000, 0.306960]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });