plotting charts in the backend or frontend [closed]

  backend, frontend, html, javascript, php

I have a data base composed of temperature records in the past 100 years in one region.
For the front-end I have built a web GIS based on HTML, CSS, and JavaScript and for the back-end I have a PHP and data are stored in the postgresql.

Now I want to filter data to plot the records from the last 10 years and generate a time series plot. The question is I don’t know where this plotting will take place. For instance, the plotting will be done in the back-end (php) and sent to the front-end browser for display or alternatively, the back-end will just send the filtered data to the browser and the plotting will take place there.

This is perhaps a simple question but I just can’t figure it out myself.

Source: Ask PHP

LEAVE A COMMENT