Hi Jen,

thank you for your quick response. Could you please tell me how to display 
the value at the top of the bar?



Am Dienstag, 10. September 2019 16:28:53 UTC+2 schrieb gottfried_s:
>
> This is my code:
>
>
> google.charts.load('current', {packages: ['corechart', 'bar']});
> google.charts.setOnLoadCallback(drawChartp);
>     function drawChartp() {
>       var data = google.visualization.arrayToDataTable([
>         [' ', 'CDU', 'SPD', 'GrĂ¼ne', 'UWG', 'FDP'],
>         ['', 1200, 900, 50, 30, 20],
>       ]);
>  
>   var options_fullStacked = {
>   title: 'Stimmenanteil (%)',
>         isStacked: 'percent',
>     backgroundColor: 'transparent',
>         fontSize: 18,
>         colors: ['black', '#e2021b', '#1fa12d', '#2382c0','#ffec01'],
> height: 150,
> width: 800,
>         legend: {position: 'none', maxLines: 3},
>         hAxis: {
>             minValue: 0,
>             ticks: [0, .25, .5, .75, 1]
>         }
>       };
>
> var formatter = new google.visualization.NumberFormat({decimalSymbol: ',', 
> fractionDigits: 0, groupingSymbol: '.'});
> formatter.format(data, 1);
>
>     var chart = new 
> google.visualization.BarChart(document.getElementById('piechart'));
>     chart.draw(data, options_fullStacked);}
>
> I am a novice with Google chart. How can I acchieve to get the value in 
> the center of the stacked item? This is want I would like to see:
>
> [image: wanted.png]
>
>
> Who can help me?
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-visualization-api+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-visualization-api/bb98846b-07a8-416f-be1f-bba00c715a63%40googlegroups.com.

Reply via email to