From the official Google docs about Google Charts I see in the example "Density of Precious Metals, in g/cm^3" I can annotate the value of the bars at its end by adding
var view = new google.visualization.DataView(data);
view.setColumns([0, 1,
{ calc: "stringify",
sourceColumn: 1,
type: "string",
role: "annotation" },
2]);And then pass view at the draw() function.
My current code to display a bar is simple as:
<script>
PocketQuery.chart('BarChart', {
height: 700,
chartArea: {
height: '100%',
width: '50%'
}
});
</script>How can I add annotations like that by using PocketQuery? Which is the correct call?
Thank you for any help.