# C Library for making HTML charts/graphs

**URL:** <https://boards.straightdope.com/t/c-library-for-making-html-charts-graphs/440522>\
**Category:** In My Humble Opinion\
**Created:** [March 7, 2008, 10:15pm UTC](https://boards.straightdope.com/t/c-library-for-making-html-charts-graphs/440522 "2008-03-07T22:15:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaxTheVool](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MaxTheVool](https://boards.straightdope.com/u/MaxTheVool)\
**Post date:** [March 7, 2008, 10:15pm UTC](https://boards.straightdope.com/t/c-library-for-making-html-charts-graphs/440522/1 "2008-03-07T22:15:49Z")

</div>

So I’m working on a project written in C which serves up various information as HTML webpages. I’d like to include various types of graphs (bar graphs, histograms, what have you). Thus, I would like a library of C functions (C++ is OK also) which allow me to do some setting up of parameters, then passing in various data points, and then presto, I get out HTML source text for a chart or graph, which I can then serve on up to the end users.

Anyone have any ideas or recommendations?

thanks

---

<div class="post-metadata">

**Author:** ![Voyager](https://sea3.discourse-cdn.com/straightdope/user_avatar/boards.straightdope.com/voyager/32/133_2.png) [@Voyager](https://boards.straightdope.com/u/Voyager)\
**Post date:** [March 8, 2008, 9:49am UTC](https://boards.straightdope.com/t/c-library-for-making-html-charts-graphs/440522/2 "2008-03-08T09:49:44Z")

</div>

There is [gnuplot](http://www.gnuplot.info/faq/index.html). I’ve never looked at the code, but I have played with it a bit. I wrote a visualization package in Perl based on [GD::Graph](http://search.cpan.org/~mverb/GDGraph-1.43/Graph.pm). It is a two pass process - the first takes data from pretty much anywhere, like a spreadsheet, and translates it into a standard form. This is the customized part. The second, driven by a GUI, plots a variety of graphs. I’m in the process of debugging a new capability that allows you to normalize based on things like the number of parts shipped. This is web based. gnuplot isn’t.

---

<div class="post-metadata">

**Author:** ![MaxTheVool](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@MaxTheVool](https://boards.straightdope.com/u/MaxTheVool)\
**Post date:** [March 10, 2008, 5:55pm UTC](https://boards.straightdope.com/t/c-library-for-making-html-charts-graphs/440522/3 "2008-03-10T17:55:43Z")

</div>

[QUOTE=Voyager]  
There is [gnuplot](http://www.gnuplot.info/faq/index.html).  
[/QUOTE]

I think I’ll give that a try, thanks.
