nleroy917 / spottydata-api

Backend and Web API for spottydata.com
MIT License
7 stars 0 forks source link

Histogram and Density Functions #5

Closed nleroy917 closed 4 years ago

nleroy917 commented 4 years ago

Chart.JS, the front-end package I use for data visualization has no histogram capabilities... Talking with @dhauersperger, we came up with the idea to use an interpolated line chart and plot the data as a pseudo-density plot using calculated histogram bins + frequencies. This way it simulates the kd2 plots I was using with seaborn for the local application.

TODO - Write function to analyze an array (any array) and output two arrays (or an object) that has a bin value, and a frequency (or count) associated with the bin

nleroy917 commented 4 years ago

Function was added with commit dce7792cd96134effc6a8dc6c401e2a1327a2f51.