$(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: [[1249084800000,7.10647],[1249171200000,7.10647],[1249257600000,7.10647],[1249344000000,7.21107],[1249430400000,7.22823],[1249516800000,7.22852],[1249603200000,7.23481],[1249689600000,7.23466],[1249776000000,7.23466],[1249862400000,7.23466],[1249948800000,7.13571],[1250035200000,7.15512],[1250121600000,7.17906],[1250208000000,7.22576],[1250294400000,7.27227],[1250380800000,7.27227],[1250467200000,7.27227],[1250553600000,7.22055],[1250640000000,7.26016],[1250726400000,7.30933],[1250812800000,7.40309],[1250899200000,7.50529],[1250985600000,7.50529],[1251072000000,7.50529],[1251158400000,7.50529],[1251244800000,7.51871],[1251331200000,7.50563],[1251417600000,7.48241],[1251504000000,7.56454],[1251590400000,7.56454],[1251676800000,7.56454]], 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: [[1249084800000, 7.106475],[1249084800000, 7.106475],[1249171200000, 7.106475],[1249257600000, 7.106475],[1249344000000, 7.211072],[1249430400000, 7.228228],[1249516800000, 7.228521],[1249603200000, 7.234811],[1249689600000, 7.234658],[1249776000000, 7.234658],[1249862400000, 7.234658],[1249948800000, 7.135707],[1250035200000, 7.155122],[1250121600000, 7.179059],[1250208000000, 7.225761],[1250294400000, 7.272273],[1250380800000, 7.272273],[1250467200000, 7.272273],[1250553600000, 7.220549],[1250640000000, 7.260156],[1250726400000, 7.309331],[1250812800000, 7.403092],[1250899200000, 7.505290],[1250985600000, 7.505290],[1251072000000, 7.505290],[1251158400000, 7.505290],[1251244800000, 7.518707],[1251331200000, 7.505631],[1251417600000, 7.482411],[1251504000000, 7.564535],[1251590400000, 7.564535],[1251676800000, 7.564535]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });