Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Trying to get date from datepicker on xaxis using d3.js

Hi, I am having two datepickers on my web page and when user select from: and to: dates from both datepickers respectively it should come on x axis and so far  i have done this(attached  file). please help.

14 Replies
Not applicable
Author

the callback takes two arguments while your only giving it the first which is actually the possible returned error::


d3.json("path/to/file.json", function(error, json) {

  if (error) return console.warn(error);

  data = json;

  visualizeit();

});

Not applicable
Author

So which other argument should I pass..please tell

Not applicable
Author

see the example

instead of ::

d3.json(“data.json”, function (data) {

     return something

})

==>

d3.json("data.json", function(error, json) {

  if (error) return console.warn('This is an error message:', error );

  data = json;

  console.log(data);

    //Do whatever you like with the data

});

Not applicable
Author

Thanks for ur suggestions..

Not applicable
Author

Please set the answer helpful of correct so it won't hang in the discussion board