Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Draw the bar's value in the bar

When I create a stacked bar chart, values of the bars are written at he top of their bar. Is it possible to write these values in the middle of the bar ?

What I have :

 4
 _ 
| |
| |
| |

What I want :

 _ 
| |
|4|
| |
like image 734
BNilsou Avatar asked Apr 23 '15 14:04

BNilsou


People also ask

What is bar in bar diagram?

The bars represent frequencies of distinctive values of a variable or commonly the distinct values themselves. The number of values on the x-axis of a bar graph or the y-axis of a column graph is called the scale.

What is the bar value?

The bar is a metric unit of pressure, but not part of the International System of Units (SI). It is defined as exactly equal to 100,000 Pa (100 kPa), or slightly less than the current average atmospheric pressure on Earth at sea level (approximately 1.013 bar).


1 Answers

It's possible to draw the value inside the bar.

Call barChart.setDrawValueAboveBar(false) to draw the value inside the bar.

like image 146
Philipp Jahoda Avatar answered Sep 20 '22 08:09

Philipp Jahoda