The best technology to use when generating pictures/graphs [closed] - javascript

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
I want to generate some picture, graphs to be more specific.
I would like them to render in a webpage.
I figured out that it's fairly easy to generate graph as pictures using javascript and HTML5 canvas.
But I realized that this might not be a good option, because javascript renders at client's side and calculating the graph may be complicated.
Also when I want to insert other pictures into such graph, javacript will expect those other pictures somewhere on client's computer.
So I guess that I should generate the picture before loading the page and then render the page with the picture on it...if there are no mistakes in my assumptions.
And if so, what would be the best way to achieve that? I work with Ruby and rails for the web app.
Thank you!

Related

Is it a good idea to store website images on good drive and link to it? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 2 years ago.
Improve this question
I'm developing a website that uses a lot of images and was thinking of storing those images on Google Drive using the Drive API whenever an image is uploaded. Do you think this is a good idea and will it affect the performance in any way?
PS. After uploading to Drive from the backend, I will store a link to the image in the DB.
In your case, maybe you should take a look at Cloudinary.
The free plan is very generous, and the api is very easy to understand, despite the possibility to transform the images (crop, etc...).

Should I save Wikipedia data to my database? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 6 years ago.
Improve this question
I am developing a website which needs Wikipedia data to show on pages. For instance I need a profile page for Barack Obama and I want to get picture of Obama and a short description about who he is.
Anyway, my question is: should I save the wiki data to my database to use in the next page views of Obama or should I always get the data from wiki? There are going to be many pages like this and I want my website to run smoothly in terms of performance, like page rendering latency or sth.
What is the appropriate approach?
Yes, caching the data, or at least the API requests, at your local webserver will both improve performance and latency.
Hotlinking images is allowed, but if it gets massive you should consider hosting the most images yourself. Make sure to respect the API etiquette, and be familar with the Wikimedia ToS.

how to achieve Node.js's image service [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
Recently I have a project to provide image service like this:
post data using json to server in client(use python)
the webservice on server renders data to png picture using node.js and d3.js(create line chart png image)
the server return png image
use python to get the image and email it to some people
I am new to d3.js and node.js, and there are many pictures to be rendered so I dont know the performance. How about this solution, and what do I should take attention? Could I get some suggetion? I feel a little fear for this beacuse I cant know if I can achieve it.
If you can use cloud providers and nodejs i suggest you take a look at AwsLambda
which should fit perfectly for your needs.

Does on the fly creation of svg images via javascript make sense? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I want to create an application that displays diagrams and allows the user to edit those diagrams.
Does it make sense to implement the editing of the way the svg-diagrams look in javascript or is it better to create all svg images at the server and send it from there to the user?
Are there any gotchers that I should think about when making that architecture decision?
Are there specific libraries that are good to use for editing svg diagrams live via javascript?
Are there specific libraries that are good to use for editing svg diagrams live via javascript?
Yes, there are several. But my favorite is Raphael.js because it's a proven cross browser vector library and it has a fairly clean API. Check out the demos on http://raphaeljs.com/.
Specifically, check out this demo: http://raphaeljs.com/graffle.html
For scalability, I'd recommend doing this on the client side and figuring out a way to wrap your created presentation in a JSON object which you can send to the server on save for backup.

Implementing algorithms using javascript [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
I am developing a webbased application using javascript and I am applying a lot of algorithms on my data and a lot of processing on data is required.
I was wondering is it the common practice to do all the processing and implementing algorithms using javascript or should I do them somewhere else ( i.e. server side ) and just give the results to javascript for viewing?
Depends on what you're trying to do!
Generally if it's data crunching, you want to do that server side, and then present it to the user. Sometimes it can be helpful to offload some of this work to your client- but keep in mind, if you're pushing computing onto the client, it may cause a page to take longer to load.

Categories

Resources