Message from JavaScript discussions

February 2019

— Hi, I have a database connected with django passing its query results to my browser.
I would like to use javascript to graphically display and animate the query results (I want to be able customise data visualization).
Can you point me a tutorial/manual/other resource to begin with?

Message permanent page

— 

You didn’t specify what kind of visualizations you wanted, I would asume some kind of charts and not 3d things.

For charting I would recommend chart.js (it’s easy to use and flexible enough and has animations built in)
https://www.chartjs.org/docs/latest/

For querying I would recommend fetch
https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch

— What would an example of a status code be?

— Right. I would like to show graph database-like representations

— And what exactly do you mean by that?

— Something like this

— I know I am being generic, sorry

— For something like that I think it’s better to use d3

— Https://github.com/d3/d3-force

— Just something like

if (failureCondition) {
return 1;
} else {
return 0;
}


and

int error = foo();
if (error) {
// handle a failure
}

Message permanent page

— Okay, thanks.

— 1 and 0 are the most universal status codes in C