Google Chart ChartWrapper图表包装器参数选项字段文档

时间:2013-08-24 22:51:46

标签: google-visualization google-chartwrapper

我是谷歌排行榜的新手。我正在使用ChartWrapper绘制我的图表,并在创建这样的图表时将图表包装器参数传递给构造函数:

var chartWrapperArgs = {
                chartType: "LineChart",
                dataTable: dataTable,
                options: { // <<<< where to find a documentations about this property ?
                    "width": 900,
                    "height": 800,
                    "is3D": true,
                    "title": "Явление на числата ",
                    "isStacked": "false",
//                    "fill": 20,
                    "displayExactValues": false,
                    "vAxis": {
                        "title": "явление"
                    },
                    "hAxis": {
                        "title": "число"
                    }
                },
                containerId: containerId
            };


            var chartWrapper = new google.visualization.ChartWrapper(chartWrapperArgs); 

我的问题是在哪里获取有关“选项”参数的文档?我可以选择哪个选项来“选项”?

我查看了Google文档here 但他们只描述了什么选项,给出简单的例子,那就是全部。但是我发现在那些和其他一些代码示例中使用了其他参数!

1 个答案:

答案 0 :(得分:6)

适当的选项取决于chartType,选项的文档与有关chartType的其他文档一起使用。请参阅https://developers.google.com/chart/interactive/docs/gallery

列表

对于LineChart,选项在此处记录:https://developers.google.com/chart/interactive/docs/gallery/linechart#Configuration_Options