Skip to content

Table No Response #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
mohanraj1939 opened this issue Dec 27, 2017 · 5 comments
Open

Table No Response #5

mohanraj1939 opened this issue Dec 27, 2017 · 5 comments

Comments

@mohanraj1939
Copy link

Hi,
I'm using grafana 4.6.3, SimpleJson V1.3.5 as datasource.

I changed the query from timeserie to table. I'm Getting response like below snapshot by using this fake simple json datasource.

table

error obtained using table as query.

table error

Command response:
table cmd

@eddy-geek
Copy link

Have you tried applying #3 ?

@yadavs1310
Copy link

i am using simplejson 1(.3.5) , could the implementation steps of fake json data source be shared.
in case you have have used other json based api,pl share the working.
at my end , it seems json request is not parsed.In grafan's query parser,url tag is modified and its appended with query and it is not letting parsing of the requested json.

pl note datasource connection to simplejson is tested successful

@nishant-tm
Copy link

Still same issue occurs.
How columns would be passed from grafana?

@vovanb
Copy link

vovanb commented Mar 19, 2019

same issue

@nmingotti
Copy link

the code is outdated try this change to the table variable.

change this:

var table = {
  "columns":[
    {"text":"Time","type":"time"},
    {"text":"Country","type":"string"},
    {"text":"Number","type":"number"}
  ],
  "rows":[
    [1234567,"SE",123],
    [1234567,"DE",231],
    [1234567,"US",321],
    [120,"IT",123123123],

  ],
  "type":"table"
}

then modify a bit what follow, just to make thing work:

// for (var i = 0;i < table.values.length; i++) {
for (var i = 0;i < table.rows.length; i++) {

  var anon = table.rows[i];
  anon[0] = (now - decreaser);
  decreaser += 1000000
}

i try to patch it now.

nmingotti added a commit to nmingotti/fake-simple-json-datasource that referenced this issue Aug 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants