私はgoogle.visualization.DataTableを使用していますが、関連する2つの列があり、colSmallとcolLargeを呼び出します。特定の行でcolSmallがcolLargeより大きい場合、その行の背景色を赤にしたいと思います。2つの列を比較して色の行をGoogleビジュアライゼーションDataTable
最も近いのは、google.visualization.ColorFormat()を使用することです。私はフォーマッタとaddRangeを作ることができます。これは、特定の値をハードコードするために使用できます。そのため、colSmallがその値を超えると、赤色になります(下記参照)。
var formatter = new google.visualization.ColorFormat();
formatter.addRange('100', null, 'black', 'red'); // anything greater than 100 will be red (the quotes are because these are string values)
formatter.format(data, 7); // colSmall is index 7
私はこの行の別の列を見せる方法を見つけることができませんでした。私が持っているもう一つの問題は、これが行全体ではなくセルを赤くすることです。
[回答](http://stackoverflow.com/a/36949638/5090771)には、ColorFormatと行全体を含む3つの例が含まれています。 – WhiteHat
APIはhttps:// developers.google.com/chart/interactive/docs/reference#colorformat –