$(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: 'Курс AZN, грн'}, 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: 'Курс AZN', data: [[1393632000000,12.3654],[1393718400000,12.3654],[1393804800000,12.3654],[1393891200000,12.7389],[1393977600000,12.3969],[1394064000000,12.046],[1394150400000,11.9683],[1394236800000,11.7745],[1394323200000,11.7745],[1394409600000,11.7745],[1394496000000,11.7745],[1394582400000,11.853],[1394668800000,11.8336],[1394755200000,12.0804],[1394841600000,12.2411],[1394928000000,12.2411],[1395014400000,12.2411],[1395100800000,12.4401],[1395187200000,12.699],[1395273600000,12.6454],[1395360000000,12.8895],[1395446400000,13.0008],[1395532800000,13.0008],[1395619200000,13.0008],[1395705600000,13.2299],[1395792000000,13.4844],[1395878400000,13.6072],[1395964800000,13.8342],[1396051200000,13.9674],[1396137600000,13.9674],[1396224000000,13.9674]], 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, 12.365375],[1393632000000, 12.365375],[1393718400000, 12.365375],[1393804800000, 12.365375],[1393891200000, 12.738909],[1393977600000, 12.396864],[1394064000000, 12.046022],[1394150400000, 11.968256],[1394236800000, 11.774477],[1394323200000, 11.774477],[1394409600000, 11.774477],[1394496000000, 11.774477],[1394582400000, 11.853009],[1394668800000, 11.833631],[1394755200000, 12.080444],[1394841600000, 12.241107],[1394928000000, 12.241107],[1395014400000, 12.241107],[1395100800000, 12.440138],[1395187200000, 12.698967],[1395273600000, 12.645416],[1395360000000, 12.889456],[1395446400000, 13.000765],[1395532800000, 13.000765],[1395619200000, 13.000765],[1395705600000, 13.229887],[1395792000000, 13.484381],[1395878400000, 13.607166],[1395964800000, 13.834247],[1396051200000, 13.967359],[1396137600000, 13.967359],[1396224000000, 13.967359]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });