How to bring 3D effect in google chart?
-
28-06-2021 - |
Question
In google chart, for pie-chart it is easy to bring 3D view by just adding 'is3D':true
. But how we can able to get 3D effects for bar, column & combo charts, shown in this demo
La solution
Since I can find the 3D option in Visualization: Column Chart (Old Version) and base on the answer.
Looks like the 3D option of column chart (and others) is not available with new version of Core Charts
.
Autres conseils
is3D: true
does not work for Column Charts unfortunately.
also need to replace "corechart" by "columnchart"
google.load("visualization", "1", { packages: ["columnchart"] });
google.setOnLoadCallback(drawChart);
Add the following:
is3D: true
For example:
var options = {
title: 'My Pie Chart',
is3D: true
};
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow