$(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: 'Курс CAD, грн'}, 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: 'Курс CAD', data: [[1257033600000,7.41577],[1257120000000,7.41577],[1257206400000,7.40266],[1257292800000,7.41657],[1257379200000,7.54409],[1257465600000,7.53867],[1257552000000,7.4604],[1257638400000,7.4604],[1257724800000,7.4604],[1257811200000,7.5191],[1257897600000,7.54342],[1257984000000,7.65773],[1258070400000,7.59908],[1258156800000,7.59403],[1258243200000,7.59403],[1258329600000,7.59403],[1258416000000,7.65077],[1258502400000,7.55359],[1258588800000,7.63364],[1258675200000,7.5276],[1258761600000,7.45603],[1258848000000,7.45603],[1258934400000,7.45603],[1259020800000,7.54729],[1259107200000,7.56259],[1259193600000,7.62892],[1259280000000,7.57346],[1259366400000,7.44491],[1259452800000,7.44491],[1259539200000,7.44491]], 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: [[1257033600000, 7.415772],[1257033600000, 7.415772],[1257120000000, 7.415772],[1257206400000, 7.402662],[1257292800000, 7.416574],[1257379200000, 7.544093],[1257465600000, 7.538672],[1257552000000, 7.460401],[1257638400000, 7.460401],[1257724800000, 7.460401],[1257811200000, 7.519102],[1257897600000, 7.543423],[1257984000000, 7.657726],[1258070400000, 7.599082],[1258156800000, 7.594029],[1258243200000, 7.594029],[1258329600000, 7.594029],[1258416000000, 7.650767],[1258502400000, 7.553588],[1258588800000, 7.633639],[1258675200000, 7.527597],[1258761600000, 7.456025],[1258848000000, 7.456025],[1258934400000, 7.456025],[1259020800000, 7.547288],[1259107200000, 7.562587],[1259193600000, 7.628920],[1259280000000, 7.573457],[1259366400000, 7.444914],[1259452800000, 7.444914],[1259539200000, 7.444914]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });