AI-generated Key Takeaways
-
The Image Charts portion of Google Chart Tools was officially deprecated as of April 20, 2012, but will continue to work according to their deprecation policy.
-
An Image Line Chart is a line chart rendered as an image using the Google Charts API.
-
The data format requires the first column to be a string category label, followed by any number of numeric columns for each line.
-
Configuration options allow customization of appearance and behavior, including colors, dimensions, legend position, and axis labels.
-
The primary method is
draw(data, options)which renders the chart.
Important: The Image Charts portion of Google Chart Tools has been officially deprecated as of April 20, 2012. It will continue to work as per our deprecation policy .
Overview
A line chart that is rendered as an image using the Google Charts API .
Example
<html>
<head>
<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
<script type="text/javascript">
google.charts.load("current", {packages:["imagelinechart"]});
google.charts.setOnLoadCallback(drawChart);
function drawChart() {
var data = google.visualization.arrayToDataTable([
['Year', 'Sales', 'Expenses'],
['2004', 1000, 400],
['2005', 1170, 460],
['2006', 660, 1120],
['2007', 1030, 540]
]);
var chart = new google.visualization.ImageLineChart(document.getElementById('chart_div'));
chart.draw(data, {width: 400, height: 240, min: 0});
}
</script>
</head>
<body>
<div id="chart_div" style="width: 400px; height: 240px;"></div>
</body>
</html>
Loading
The google.charts.load
package name is "imagelinechart"
.
google . charts . load ( 'current' , { packages : [ 'imagelinechart' ]});
The visualization's class name is google.visualization.ImageLineChart
.
var visualization = new google . visualization . ImageLineChart ( container );
Data Format
The first column should be a string, and contain the category label. Any number of columns can follow, all must be numeric. Each column is displayed as a separate line.
Configuration Options
color
option
instead.- 'right' - To the right of the chart.
- 'left' - To the left of the chart.
- 'top' - Above the chart.
- 'bottom' - Below the chart.
- 'none' - No legend is displayed.
min
is 0, max
is 100, and valueLabelsInterval
is 20, the chart will show axis labels at (0, 20, 40, 60, 80 100).Methods
| Method | Return Type | Description |
|---|---|---|
draw(data, options)
|
none | Draws the chart. |
Events
You can register to hear the events described on the Generic Image Chart page.
Data Policy
Please refer to the Chart API logging policy .

