$(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: [[1393632000000,8.72422],[1393718400000,8.72422],[1393804800000,8.72422],[1393891200000,9.0048],[1393977600000,8.78256],[1394064000000,8.54195],[1394150400000,8.51053],[1394236800000,8.4086],[1394323200000,8.4086],[1394409600000,8.4086],[1394496000000,8.4086],[1394582400000,8.36715],[1394668800000,8.33516],[1394755200000,8.5632],[1394841600000,8.65953],[1394928000000,8.65953],[1395014400000,8.65953],[1395100800000,8.81427],[1395187200000,9.01733],[1395273600000,8.87658],[1395360000000,8.97161],[1395446400000,9.10319],[1395532800000,9.10319],[1395619200000,9.10319],[1395705600000,9.2518],[1395792000000,9.46147],[1395878400000,9.55832],[1395964800000,9.78096],[1396051200000,9.92456],[1396137600000,9.92456],[1396224000000,9.92456]], 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, 8.724218],[1393632000000, 8.724218],[1393718400000, 8.724218],[1393804800000, 8.724218],[1393891200000, 9.004802],[1393977600000, 8.782564],[1394064000000, 8.541955],[1394150400000, 8.510532],[1394236800000, 8.408597],[1394323200000, 8.408597],[1394409600000, 8.408597],[1394496000000, 8.408597],[1394582400000, 8.367146],[1394668800000, 8.335163],[1394755200000, 8.563197],[1394841600000, 8.659528],[1394928000000, 8.659528],[1395014400000, 8.659528],[1395100800000, 8.814270],[1395187200000, 9.017332],[1395273600000, 8.876575],[1395360000000, 8.971613],[1395446400000, 9.103192],[1395532800000, 9.103192],[1395619200000, 9.103192],[1395705600000, 9.251798],[1395792000000, 9.461474],[1395878400000, 9.558315],[1395964800000, 9.780963],[1396051200000, 9.924563],[1396137600000, 9.924563],[1396224000000, 9.924563]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });