$(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: 'Курс TMM, грн'}, 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: 'Курс TMM', data: [[1393632000000,3.4033],[1393718400000,3.4033],[1393804800000,3.4033],[1393891200000,3.5061],[1393977600000,3.41196],[1394064000000,3.3154],[1394150400000,3.294],[1394236800000,3.24067],[1394323200000,3.24067],[1394409600000,3.24067],[1394496000000,3.24067],[1394582400000,3.26228],[1394668800000,3.25695],[1394755200000,3.32488],[1394841600000,3.36867],[1394928000000,3.36867],[1395014400000,3.36867],[1395100800000,3.42344],[1395187200000,3.49467],[1395273600000,3.47993],[1395360000000,3.54709],[1395446400000,3.57772],[1395532800000,3.57772],[1395619200000,3.57772],[1395705600000,3.64077],[1395792000000,3.71081],[1395878400000,3.7446],[1395964800000,3.80709],[1396051200000,3.84372],[1396137600000,3.84372],[1396224000000,3.84372]], 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, 3.403298],[1393632000000, 3.403298],[1393718400000, 3.403298],[1393804800000, 3.403298],[1393891200000, 3.506105],[1393977600000, 3.411965],[1394064000000, 3.315404],[1394150400000, 3.294000],[1394236800000, 3.240667],[1394323200000, 3.240667],[1394409600000, 3.240667],[1394496000000, 3.240667],[1394582400000, 3.262281],[1394668800000, 3.256947],[1394755200000, 3.324877],[1394841600000, 3.368667],[1394928000000, 3.368667],[1395014400000, 3.368667],[1395100800000, 3.423439],[1395187200000, 3.494667],[1395273600000, 3.479930],[1395360000000, 3.547088],[1395446400000, 3.577719],[1395532800000, 3.577719],[1395619200000, 3.577719],[1395705600000, 3.640772],[1395792000000, 3.710807],[1395878400000, 3.744596],[1395964800000, 3.807088],[1396051200000, 3.843719],[1396137600000, 3.843719],[1396224000000, 3.843719]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });