pxt-calliope/docs/reference/led/plot-bar-graph.md

26 lines
642 B
Markdown
Raw Normal View History

2016-03-26 00:47:20 +01:00
# Plot Bar Graph
Displays a vertical bar graph based on the value and high value.
```sig
led.plotBarGraph(2, 20);
```
### Parameters
2016-04-13 17:27:45 +02:00
* value: [Number](/reference/types/number) , high : [Number](/reference/types/number) displays a vertical bar graph based on the value and high value
2016-03-26 00:47:20 +01:00
### Example: chart acceleration
```blocks
basic.forever(() => {
let a = input.acceleration(Dimension.X);
led.plotBarGraph(a, 1023)
})
```
### See also
2016-04-13 17:27:45 +02:00
[brightness](/reference/led/brightness), [fade in](/reference/led/fade-in), [fade out](/reference/led/fade-out), [LED screen](/device/screen), [stop animation](/reference/led/stop-animation)
2016-03-26 00:47:20 +01:00