LINE CHART issue


#1

I’ve created a Line chart and pass JSON object but "Geckoboard gives error “invalid type provided: " object”.

here you can see my JSON object

{“api_key”:"",“data”:{“x_axis”:{“labels”:null,“type”:“datetime”},“series”:{“name”:"",“data”:[[“2017-06-26”,61],[“2017-06-27”,61]]}}}

Please give some help for this.


#2

Hi @chamilmc,

I edited your post as it contained your API Key.

With regards to your question, the right payload is this:

{
  "x_axis": {
    "type": "datetime"
  },
  "series": [
    {
      "name": "",
      "data": [
      		["2017-06-26", 61],
		["2017-06-27", 61]
      ]
      
    }
  ]
}

Which I have used to populate this widget here

BTW you might want to include name for your series?


#3

Thank you for your time.