$(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: [[1214870400000,0.00034027],[1214956800000,0.0003403],[1215043200000,0.00034032],[1215129600000,0.00034034],[1215216000000,0.00033966],[1215302400000,0.00033966],[1215388800000,0.00033966],[1215475200000,0.00033966],[1215561600000,0.0003397],[1215648000000,0.00033977],[1215734400000,0.00033977],[1215820800000,0.0003398],[1215907200000,0.0003398],[1215993600000,0.0003398],[1216080000000,0.00033974],[1216166400000,0.00033966],[1216252800000,0.00033971],[1216339200000,0.00033967],[1216425600000,0.00033965],[1216512000000,0.00033965],[1216598400000,0.00033965],[1216684800000,0.00033965],[1216771200000,0.00033965],[1216857600000,0.0003397],[1216944000000,0.00033985],[1217030400000,0.00033985],[1217116800000,0.00033985],[1217203200000,0.00033985],[1217289600000,0.00033989],[1217376000000,0.00033999],[1217462400000,0.00034001]], 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: [[1214870400000, 0.000340],[1214870400000, 0.000340],[1214956800000, 0.000340],[1215043200000, 0.000340],[1215129600000, 0.000340],[1215216000000, 0.000340],[1215302400000, 0.000340],[1215388800000, 0.000340],[1215475200000, 0.000340],[1215561600000, 0.000340],[1215648000000, 0.000340],[1215734400000, 0.000340],[1215820800000, 0.000340],[1215907200000, 0.000340],[1215993600000, 0.000340],[1216080000000, 0.000340],[1216166400000, 0.000340],[1216252800000, 0.000340],[1216339200000, 0.000340],[1216425600000, 0.000340],[1216512000000, 0.000340],[1216598400000, 0.000340],[1216684800000, 0.000340],[1216771200000, 0.000340],[1216857600000, 0.000340],[1216944000000, 0.000340],[1217030400000, 0.000340],[1217116800000, 0.000340],[1217203200000, 0.000340],[1217289600000, 0.000340],[1217376000000, 0.000340],[1217462400000, 0.000340]], tooltip: {valueSuffix: ' грн'}, type: 'spline', step: false, color: '#0000CC', threshold: null }] }); });