$(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: 'Курс CHF, грн'}, 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: 'Курс CHF', data: [[1222819200000,4.40796],[1222905600000,4.32765],[1222992000000,4.30355],[1223078400000,4.30335],[1223164800000,4.30335],[1223251200000,4.30335],[1223337600000,4.2739],[1223424000000,4.29435],[1223510400000,4.35273],[1223596800000,4.35989],[1223683200000,4.40264],[1223769600000,4.40264],[1223856000000,4.40264],[1223942400000,4.35296],[1224028800000,4.35784],[1224115200000,4.34728],[1224201600000,4.38381],[1224288000000,4.37293],[1224374400000,4.37293],[1224460800000,4.37293],[1224547200000,4.37449],[1224633600000,4.33866],[1224720000000,4.36067],[1224806400000,4.41931],[1224892800000,4.51401],[1224979200000,4.51401],[1225065600000,4.51401],[1225152000000,4.61705],[1225238400000,4.7447],[1225324800000,5.0058],[1225411200000,5.07343]], 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: [[1222819200000, 4.407961],[1222819200000, 4.407961],[1222905600000, 4.327651],[1222992000000, 4.303549],[1223078400000, 4.303351],[1223164800000, 4.303351],[1223251200000, 4.303351],[1223337600000, 4.273900],[1223424000000, 4.294352],[1223510400000, 4.352730],[1223596800000, 4.359888],[1223683200000, 4.402638],[1223769600000, 4.402638],[1223856000000, 4.402638],[1223942400000, 4.352961],[1224028800000, 4.357841],[1224115200000, 4.347280],[1224201600000, 4.383814],[1224288000000, 4.372931],[1224374400000, 4.372931],[1224460800000, 4.372931],[1224547200000, 4.374492],[1224633600000, 4.338665],[1224720000000, 4.360674],[1224806400000, 4.419313],[1224892800000, 4.514013],[1224979200000, 4.514013],[1225065600000, 4.514013],[1225152000000, 4.617052],[1225238400000, 4.744697],[1225324800000, 5.005805],[1225411200000, 5.073433]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });