Map/

Google Charts Response Json

Google Charts Response Json
The Google Charts Response Json is an example response of an API, which returns data includes an array of columns and rows that define the data to be displayed in the chart.

JSON Data:

1{ 2 "chart_title": "Monthly Sales", 3 "chart_subtitle": "Sales by month for the year 2022", 4 "cols": [ 5 { 6 "label": "Month", 7 "type": "string" 8 }, 9 { 10 "label": "Sales", 11 "type": "number" 12 }, 13 { 14 "label": "Expenses", 15 "type": "number" 16 }, 17 { 18 "label": "Profit", 19 "type": "number" 20 } 21 ], 22 "rows": [ 23 { 24 "c": [ 25 { 26 "v": "January" 27 }, 28 { 29 "v": 100 30 }, 31 { 32 "v": 50 33 }, 34 { 35 "v": 50 36 } 37 ] 38 }, 39 { 40 "c": [ 41 { 42 "v": "February" 43 }, 44 { 45 "v": 200 46 }, 47 { 48 "v": 75 49 }, 50 { 51 "v": 125 52 } 53 ] 54 }, 55 { 56 "c": [ 57 { 58 "v": "March" 59 }, 60 { 61 "v": 300 62 }, 63 { 64 "v": 100 65 }, 66 { 67 "v": 200 68 } 69 ] 70 }, 71 { 72 "c": [ 73 { 74 "v": "April" 75 }, 76 { 77 "v": 400 78 }, 79 { 80 "v": 125 81 }, 82 { 83 "v": 275 84 } 85 ] 86 }, 87 { 88 "c": [ 89 { 90 "v": "May" 91 }, 92 { 93 "v": 500 94 }, 95 { 96 "v": 150 97 }, 98 { 99 "v": 350 100 } 101 ] 102 } 103 ] 104}

Description :

The Google Charts Response Json is an example response of an API, which returns data includes an array of columns and rows that define the data to be displayed in the chart.

The "cols" array specifies the labels and data types for each column in the chart, while the "rows" array includes the actual data points for each row.

In this case, the chart displays monthly sales data with the month name as the label for the first column and the sales amount as the data for the second column.

Please note that this is just an example of the JSON data format for a basic bar chart using the Google Charts API, and other chart APIs may have different JSON data formats depending on the chart type and specific implementation.

JSON Studio - Free tool to view, convert, compare JSON powered by ChatGPT | Product Hunt
episyche logo

Developed by

Episyche Technologies

Copyright © 2022-2023 Episyche Technologies. All rights reserved.

twitter
linkedin