I am interested in optimizing my chart pool. On my internal server; I have about 15 charts that has to go each in their own page. This means to have to change 15 times something, if I have to.
I tried to put all the common code in a single js script, so the web page has minimum code in it, but still, I need to maintain plenty of pages.
Is there a more efficient way to maintain multiple charts, that live on different pages? Ideally I would have a single page, where I use links to make new charts. I would call this function and it will generate the webpage to host the chart and the appropriate code to build the chart itself (which takes data from external files). Is JS the right tool for this job, or do I need to use something else?
I don't need anything complicate, just something that can reduce the amount of work done to maintain (and upgrade), multiple charts. Any pointer is appreciated, since I just started with webpages, CSS and such.