2つの系列をプロットするときにGoogle Charts散布図に問題があり、それにChartRangeFilterが添付されています。Google Charts - 散布図+ 2系列+ ChartRangeFilter - トラブル
私のDataTableには以下のようになります。
var paretoScatterData = new google.visualization.DataTable();
paretoScatterData.addColumn('number', "Nodecollisions");
paretoScatterData.addColumn('number', "Linkcollisions");
paretoScatterData.addColumn({type: 'string', role: 'tooltip', 'p': {'html': true}});
paretoScatterData.addColumn({'type': 'string', 'role': 'style'});
paretoScatterData.addColumn('number', 'Paretofront');
paretoScatterData.addColumn({type: 'string', role: 'tooltip', 'p': {'html': true}});
paretoScatterData.addColumn({'type': 'string', 'role': 'style'});
私は、テーブルに次のデータを追加しました:
paretoScatterData.addRows(
[[0,1,"asd","fill-color:green", null, null, null],
[0,2,"asd","fill-color:green", null, null, null],
[0,3,"asd","fill-color:green", null, null, null],
[0,4,"asd","fill-color:green", null, null, null],
[0,5,"asd","fill-color:green", null, null, null],
[5,null,null,null, 0, "asd", "fill-color: red"],
[4,null,null,null, 0, "asd", "fill-color: red"],
[3,null,null,null, 0, "asd", "fill-color: red"],
[2,null,null,null, 0, "asd", "fill-color: red"],
[1,null,null,null, 0, "asd", "fill-color: red"]]) ;
散布図は、緑の「基準点」と「パレート・ポイント」を描く、完全にレンダリング赤で。 ChartRangeFilterをスキャッタプロットに添付しました。 filterColumnIndex:0のフィルタリングを行っても、スキャッタプロットは完全にレンダリングされ、「ノーマルポイント」と「パレートポイント」の両方が表示されます。 filterColumnIndex:1の場合、「パレート点」が消えます。
Both outputs for filterColumnIndex: 0 and filterColumnIndex: 1
私はChartRangeFilterで、縦軸をフィルタリングするために何を行うことができますし、まだ私の「パレート・ポイント」と「通常のポイント」を示しますか?
ここにはjsfiddleがあります。
誰もが私を助けてくれることを願っています。私は本当に感謝しています:)。
P.S.これはもちろん架空のデータなので、パレート点の値を気にしないでください。
BIG UP!それは魅力のように機能します。あなたのお手伝いをしてくれてありがとう! – dafuq
よろしく!助けてうれしい... – WhiteHat