Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add target line in google column chart?

How to add the target line in google column chart like this.

google column chart

like image 732
Sivanath Avatar asked Nov 01 '12 13:11

Sivanath


People also ask

How do I add a target to a chart?

Create Goal Line Step 1: Right-click on any bar and select the 'change series chart type' option. Step 2: In the change chart dialog box, make sure the Combo category is selected. Step 3: Click the dropdown of the 'Target sales' field. Step 4: Select the Line option.


1 Answers

If you'd like to combine the columnchart and linechart, use ComboChart. Documentation and examples are here : https://developers.google.com/chart/interactive/docs/gallery/combochart

basically, have the data point for the line chart as one of the columns in the DataTable and specify this column to be the "series" = "line", whereas the other columns are visualized in a ColumnChart.

like image 147
user1447121 Avatar answered Sep 25 '22 06:09

user1447121