From f57cf1785ce4a57f7cf970ad2d818d0b366c67c6 Mon Sep 17 00:00:00 2001 From: Jesse Date: Thu, 30 Apr 2020 19:58:37 -0400 Subject: [PATCH] Label color can be specified for BarChartNOde, see phetsims/griddle#49 --- js/common/view/EnergyGraphNode.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/js/common/view/EnergyGraphNode.js b/js/common/view/EnergyGraphNode.js index 3c37ea08..f4d2d3a5 100644 --- a/js/common/view/EnergyGraphNode.js +++ b/js/common/view/EnergyGraphNode.js @@ -136,19 +136,23 @@ function EnergyGraphNode( model, tandem ) { this.barChartNode = new BarChartNode( [ { entries: [ aEntry ], - labelString: keString + labelString: keString, + labelColor: PhetColorScheme.KINETIC_ENERGY }, { entries: [ bEntry ], - labelString: peGravString + labelString: peGravString, + labelColor: PhetColorScheme.GRAVITATIONAL_POTENTIAL_ENERGY }, { entries: [ cEntry ], - labelString: peElasString + labelString: peElasString, + labelColor: PhetColorScheme.ELASTIC_POTENTIAL_ENERGY }, { entries: [ dEntry ], labelString: eThermString, + labelColor: PhetColorScheme.HEAT_THERMAL_ENERGY, labelNode: clearThermalButton }, {