Google Charts remove white border around vAxis textPosition 'in' text on Bar Chart

How to remove white border around vAxis textPosition text style in text style in google chart diagram?

My style is as follows:

vAxis: { 'textPosition': 'in', 'textStyle': { color: 'black', 'stroke': 0 } }, 

I want that around the black text inside my color bars there should be no environment around white.

See this link: https://developers.google.com/chart/interactive/docs/gallery/bubblechart

Notice how the Bubbles have text inside them with a white frame around them. I want to remove this border so that the black text is directly above the color of the bubble with no border around the black text.

I have tried many combinations, such as:

 'textStyle': { color: 'black', 'stroke': 0 } 'textStyle': { color: 'black', 'strokeWidth': 0 } 'textStyle': { color: 'black', 'border': 0 } 'textStyle': { color: 'black', 'border': 'none' } 

Nothing I tried has any meaning. I still have a white frame around the text.

+4
source share
1 answer

There is an undocumented "auraColor" option that applies to several, if not all, textStyle parameters. For instance,

 textStyle: { auraColor: 'white' } 

Setting it to "none" will delete it.

+11
source

Source: https://habr.com/ru/post/1497006/


All Articles