组合图有助于将每个系列渲染为以下列表中的不同标记类型:线条,区域,条形,烛台和阶梯区域.要为系列指定默认标记类型,请使用seriesType属性.系列属性用于单独指定每个系列的属性.我们已经在 Google Charts Configuration Syntax 一章中看到了用于绘制此图表的配置.所以,让我们看一下完整的例子.
配置
我们使用 ComboChart 类来显示基于组合的图表.
//combination chartvar chart = new google.visualization.ComboChart(document.getElementById('container'));
示例
googlecharts_combination_chart.htm
Google Charts Tutorial
结果
验证结果.