$(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: 'Курс PLN, грн'}, 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: 'Курс PLN', data: [[1359676800000,2.58208],[1359763200000,2.60951],[1359849600000,2.60951],[1359936000000,2.60951],[1360022400000,2.60137],[1360108800000,2.58762],[1360195200000,2.58052],[1360281600000,2.58501],[1360368000000,2.57017],[1360454400000,2.57017],[1360540800000,2.57017],[1360627200000,2.57684],[1360713600000,2.57208],[1360800000000,2.58271],[1360886400000,2.55053],[1360972800000,2.54156],[1361059200000,2.54156],[1361145600000,2.54156],[1361232000000,2.54762],[1361318400000,2.56001],[1361404800000,2.57082],[1361491200000,2.52535],[1361577600000,2.53727],[1361664000000,2.53727],[1361750400000,2.53727],[1361836800000,2.56424],[1361923200000,2.50791],[1362009600000,2.51355]], 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: [[1359676800000, 2.582075],[1359676800000, 2.582075],[1359763200000, 2.609506],[1359849600000, 2.609506],[1359936000000, 2.609506],[1360022400000, 2.601372],[1360108800000, 2.587618],[1360195200000, 2.580524],[1360281600000, 2.585011],[1360368000000, 2.570167],[1360454400000, 2.570167],[1360540800000, 2.570167],[1360627200000, 2.576841],[1360713600000, 2.572077],[1360800000000, 2.582713],[1360886400000, 2.550526],[1360972800000, 2.541563],[1361059200000, 2.541563],[1361145600000, 2.541563],[1361232000000, 2.547624],[1361318400000, 2.560008],[1361404800000, 2.570820],[1361491200000, 2.525355],[1361577600000, 2.537271],[1361664000000, 2.537271],[1361750400000, 2.537271],[1361836800000, 2.564236],[1361923200000, 2.507905],[1362009600000, 2.513550]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });