$(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: 'Курс XDR, грн'}, 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: 'Курс XDR', data: [[1212969600000,7.86505],[1213056000000,7.91273],[1213142400000,7.84199],[1213228800000,7.83866],[1213315200000,7.82026],[1213401600000,7.79518],[1213488000000,7.79518],[1213574400000,7.79518],[1213660800000,7.79518],[1213747200000,7.83386],[1213833600000,7.82848],[1213920000000,7.83927],[1214006400000,7.86385],[1214092800000,7.86385],[1214179200000,7.86385],[1214265600000,7.83962],[1214352000000,7.84444],[1214438400000,7.85466],[1214524800000,7.88497],[1214611200000,7.90338],[1214697600000,7.90338],[1214784000000,7.90338]], 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: [[1212969600000, 7.865054],[1212969600000, 7.865054],[1213056000000, 7.912730],[1213142400000, 7.841987],[1213228800000, 7.838665],[1213315200000, 7.820258],[1213401600000, 7.795180],[1213488000000, 7.795180],[1213574400000, 7.795180],[1213660800000, 7.795180],[1213747200000, 7.833863],[1213833600000, 7.828481],[1213920000000, 7.839270],[1214006400000, 7.863851],[1214092800000, 7.863851],[1214179200000, 7.863851],[1214265600000, 7.839622],[1214352000000, 7.844441],[1214438400000, 7.854656],[1214524800000, 7.884967],[1214611200000, 7.903384],[1214697600000, 7.903384],[1214784000000, 7.903384]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });