The closest NPM / JS library that exists today that will allow you "visualize" data ( I've searched extensively ) is dc.js based on crossfilter although it won't do it automatically without any configuration or UI input.
The reason there's no plug-and-play JS library with full UI controls to tweak how data is displayed is that this function is typically reserved for a full analytics / BI software applications which are specifically designed to allow users to visualize data along defined dimensions .. such as the following:
You can of course, write code that would accomplish your goal that would dynamically query your data set and aggregate your data, which would then be fed into your charts after additional averaging, summation etc. I would expect that you could feed in options on how to "visualize" your data points based on field types and/or settings from either config files or controls in your UI.
For example, you can reuse your existing Highcharts library after grouping data dynamically via either lodash or dynamic construction of a MySQL GROUP BY query. However, i'd personally recommended leveraging dc.js features to perform dimensioning depending on your dataset sizes, such as in this example.
If you do write custom Node.JS code to kick out charting data based on either configuration or UI settings input please publish it as an NPM package so we can all use it.