2 つの積み上げ縦棒グラフがあります。両方 以下に提供
両方とも、同じ列数の非常によく似たデータを含んでいます。
どちらもまったく同じ初期化コードを持ち、データが両者の唯一の違いです。
chart: { renderTo:'hcweeklySnapshotLoc_container', animation: { animation: true }, defaultSeriesType: 'column', height: 500, marginBottom: 140, zoomType: 'x' },
credits: { enabled: false },
plotOptions: { column: { dataLabels: { enabled: true }, stacking: 'normal' }, line: { lineWidth: 1, marker: { enabled: false, states: { hover: { enabled: true } } } }, series: { pointInterval: 7 }, spline: { lineWidth: 3, marker: { enabled: false, states: { hover: { enabled: true } } } } },
title: { text: 'Location 3', x: -20 },
tooltip: { formatter: function() { if(this.series.name == 'Target'|| this.series.name == 'Stretch' || this.series.name == 'Failure') { return '<b>'+ this.series.name +'</b><br/>' + Highcharts.dateFormat('%e %B %Y', this.x) +': <b>'+ this.y + '</b>' } else { return '<b>'+ this.series.name +'</b>' +'<br/>' + 'Week Ending :' + Highcharts.dateFormat('%e %B %Y', this.x) +': '+ this.y +'<br/>' + 'Total: '+ Math.round(this.point.stackTotal*Math.pow(10,2))/Math.pow(10,2);} } },
xAxis: { dateTimeLabelFormats: { month: '%b %Y' }, minRange: 86400000, startOfWeek: 5, tickInterval: 604800000, tickmarkPlacement: 'on', title: { text: 'Week ending' }, type: 'datetime' },
yAxis: { allowDecimals: false, min: 0, title: { text: 'Number of People' } }
その他の場所 (場所 1 と場所 2) も、すべての場所のグラフと同じ問題に直面しています。
私の問題は、すべての場所のグラフが最後に余分な日付の目盛りを表示しているのに対し、場所 3 のグラフは表示されていないことです。これは Highcharts のバグですか、それとも私のデータの問題ですか。MVC4/Razor を使用して、Highchart.Net を使用してハイチャートを生成しています