N
N
Nana1232016-03-15 15:20:55
Google
Nana123, 2016-03-15 15:20:55

How to set individual options for google charts?

Hello everyone, there are 2 charts 907c473416e640f0b7c746eff9061f6e.png
You need to install online, 100 units, and where you need to put progress 10000

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Shevchuk, 2016-04-02
@AntonShevchuk

What version of Google Charts are you using?
If the second, then you need to actually form a table with data like this:

{
"containerId":"chart",
"dataTable":{
  "cols":[{"label":"A","type":"string"},{"label":"B","type":"number"}],
  "rows":[{"c":[{"v":"Online"},{"v":100}]}]
},
...
}

You can play around here - this is all a link to your example:
http://charts.hohli.com/new/embed.html?created=1459573342411#w=640&h=480&d={"containerId":"chart","dataTable":{"cols":[{"label":"A","type":"string"},{"label":"B","type":"number"}],"rows":[{"c":[{"v":"Online"},{"v":100}]}]},"options":{"hAxis":{"useFormatFromData":true,"viewWindow":{"max":null,"min":null},"minValue":null,"maxValue":null},"vAxes":[{"useFormatFromData":true,"viewWindow":{"max":null,"min":null},"minValue":null,"maxValue":null},{"useFormatFromData":true,"viewWindow":{"max":null,"min":null},"minValue":null,"maxValue":null}],"booleanRole":"certainty","width":600,"height":371,"min":0,"max":1000,"greenFrom":200,"greenTo":400,"yellowFrom":400,"yellowTo":800,"redFrom":800,"redTo":1000},"state":{},"view":{},"isDefaultVisualization":false,"chartType":"Gauge"}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question