$(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: [[1393632000000,3.21475],[1393718400000,3.21475],[1393804800000,3.21475],[1393891200000,3.28123],[1393977600000,3.19793],[1394064000000,3.10449],[1394150400000,3.08368],[1394236800000,3.06115],[1394323200000,3.06115],[1394409600000,3.06115],[1394496000000,3.06115],[1394582400000,3.0536],[1394668800000,3.04938],[1394755200000,3.12834],[1394841600000,3.14207],[1394928000000,3.14207],[1395014400000,3.14207],[1395100800000,3.2136],[1395187200000,3.28949],[1395273600000,3.2868],[1395360000000,3.3104],[1395446400000,3.34742],[1395532800000,3.34742],[1395619200000,3.34742],[1395705600000,3.40899],[1395792000000,3.47354],[1395878400000,3.52077],[1395964800000,3.57165],[1396051200000,3.61111],[1396137600000,3.61111],[1396224000000,3.61111]], 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, 3.214747],[1393632000000, 3.214747],[1393718400000, 3.214747],[1393804800000, 3.214747],[1393891200000, 3.281229],[1393977600000, 3.197932],[1394064000000, 3.104493],[1394150400000, 3.083682],[1394236800000, 3.061154],[1394323200000, 3.061154],[1394409600000, 3.061154],[1394496000000, 3.061154],[1394582400000, 3.053601],[1394668800000, 3.049378],[1394755200000, 3.128342],[1394841600000, 3.142072],[1394928000000, 3.142072],[1395014400000, 3.142072],[1395100800000, 3.213597],[1395187200000, 3.289488],[1395273600000, 3.286798],[1395360000000, 3.310399],[1395446400000, 3.347416],[1395532800000, 3.347416],[1395619200000, 3.347416],[1395705600000, 3.408987],[1395792000000, 3.473542],[1395878400000, 3.520774],[1395964800000, 3.571649],[1396051200000, 3.611115],[1396137600000, 3.611115],[1396224000000, 3.611115]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });