title: Update the Height of an Element Dynamically
challengeType: 6
---
## Description
<sectionid='description'>
The previous challenges covered how to display data from an array and how to add CSS classes. You can combine these lessons to create a simple bar chart. There are two steps to this:
1) Create a <code>div</code> for each data point in the array
2) Give each <code>div</code> a dynamic height, using a callback function in the <code>style()</code> method that sets height equal to the data value
Recall the format to set a style using a callback function:
Add the <code>style()</code> method to the code in the editor to set the <code>height</code> property for each element. Use a callback function to return the value of the data point with the string "px" added to it.
</section>
## Tests
<sectionid='tests'>
```yml
tests:
- text: The first <code>div</code> should have a <code>height</code> of 12 pixels.