$(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: 'Курс EUR, грн'}, 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: 'Курс EUR', data: [[1393632000000,13.3978],[1393718400000,13.3978],[1393804800000,13.3978],[1393891200000,13.7575],[1393977600000,13.3881],[1394064000000,12.9752],[1394150400000,12.9037],[1394236800000,12.8324],[1394323200000,12.8324],[1394409600000,12.8324],[1394496000000,12.8324],[1394582400000,12.877],[1394668800000,12.8903],[1394755200000,13.2113],[1394841600000,13.3296],[1394928000000,13.3296],[1395014400000,13.3296],[1395100800000,13.5678],[1395187200000,13.8461],[1395273600000,13.7986],[1395360000000,13.9123],[1395446400000,14.0508],[1395532800000,14.0508],[1395619200000,14.0508],[1395705600000,14.2922],[1395792000000,14.583],[1395878400000,14.7179],[1395964800000,14.9277],[1396051200000,15.0724],[1396137600000,15.0724],[1396224000000,15.0724]], 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, 13.397781],[1393632000000, 13.397781],[1393718400000, 13.397781],[1393804800000, 13.397781],[1393891200000, 13.757536],[1393977600000, 13.388141],[1394064000000, 12.975229],[1394150400000, 12.903669],[1394236800000, 12.832359],[1394323200000, 12.832359],[1394409600000, 12.832359],[1394496000000, 12.832359],[1394582400000, 12.877038],[1394668800000, 12.890330],[1394755200000, 13.211300],[1394841600000, 13.329612],[1394928000000, 13.329612],[1395014400000, 13.329612],[1395100800000, 13.567806],[1395187200000, 13.846114],[1395273600000, 13.798635],[1395360000000, 13.912281],[1395446400000, 14.050777],[1395532800000, 14.050777],[1395619200000, 14.050777],[1395705600000, 14.292178],[1395792000000, 14.582971],[1395878400000, 14.717893],[1395964800000, 14.927705],[1396051200000, 15.072434],[1396137600000, 15.072434],[1396224000000, 15.072434]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });