Skip to content

Commit

Permalink
Label color can be specified for BarChartNOde, see phetsims/griddle#49
Browse files Browse the repository at this point in the history
  • Loading branch information
jessegreenberg committed Apr 30, 2020
1 parent 1a6206d commit f57cf17
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions js/common/view/EnergyGraphNode.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
},
{
Expand Down

0 comments on commit f57cf17

Please sign in to comment.