Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange
The results are in! See what nearly 90,000 developers picked as their most loved, dreaded, and desired coding languages and more in the 2019 Developer Survey.

Questions tagged [data-visualization]

Plotting data graphically, static or interactive.

11
votes
0answers
728 views

Plotting polynomials roots

NOTE: See follow up to this question here I created a simple python script to plot quadratic, cubic and quartic polynomials with integer coefficients between -4 and 4. It uses numpy to find the roots ...
5
votes
0answers
98 views

Prerelease code for fingerprint viewing

I wanted to start contributing to the Open Source community, and decided to release some of the Python tools I have written awhile ago. The problem is that I am not really familiar with good practices,...
4
votes
0answers
121 views

ggplot2: a script for stacked and a line chart

So far I was successful to get what I need using below mentioned script, but I'm sure my script is far from being perfect (if it is possible at all). So, I'd greatly appreciate your comments on how ...
3
votes
0answers
137 views

K&R Exercise 1-13. Printing histogram of word lengths (vertical variant)

I'm going through the K&R book (2nd edition, ANSI C ver.) and want to get the most from it. How does the following solution look to you? Note that, for the sake of exercise, I don't want to use ...
3
votes
0answers
58 views

Boilerplate-free mixin pattern for a TypeScript charting library

The TypeScript handbook provides a mixin pattern but it requires a bunch of boilerplate, doesn't work for getters/setters and doesn't support defining default values (or any constructor work) in the ...
3
votes
0answers
442 views

Python, matplotlib, 3d plot, how to make this code effective, light, fast?

I have already make a 3D mesh. See below: And the code below: ...
3
votes
0answers
2k views

Reading a csv file and making a histogram in Python using NumPy and Matplotlib

I have written the following code which reads a csv file that contains a bunch of words and their sentiment value. Words like abandon may have a value of -1, while words like progress and freedom have ...
3
votes
0answers
47 views

Reusable, manipulatable plots

I'm interested in mimicking a simple version of Mathematica's Manipulate function in javascript. This is my first project in javascript, but I was hoping to make a library that I can use to quickly ...
3
votes
0answers
90 views

JFreeChart generic plotting tool

I have created a bit of code that plots data for a project (XY Line Chart). It works. But it isn't what I'd consider good. I am looking to improve it in two ways: Make it more generic, so that I can ...
3
votes
0answers
30 views

Data Explorer query that makes bar graphs

I wrote a query for SEDE that I think is pretty cool. It uses the currently available graphing capabilities (scatter plots) to create a bar graph. I have used it as the subject for a self-answer on ...
2
votes
0answers
26 views

Angular polling and plotting component using Firebase

I could use some help refactoring my component and service. I have a lot of nested logic and wasn't sure what I could do to improve this. I'm new to Angular 7 and their piping syntax. I suspect this ...
2
votes
0answers
31 views

Function that plots data frames, supporting several variants

I defined a function that generates tables and creates countplots and barplots based on the arguments that it receives. But the snippets of code inside the function are repeated several times, which ...
2
votes
0answers
213 views

Generating data for Highcharts

I have written a code to generate chart data for the Highcharts library and need to know if there are any improvements possible. I have applied generics but think it could be fine tuned further. Could ...
2
votes
0answers
243 views

Smoothing matrix for visual representation

I recently started playing around with R and am currently trying to plot GPS data points onto a perspective plot. I have a script that works and I get my desired results out of it and it works ok for ...
1
vote
0answers
13 views

Google ChartWrapper bar formatted table

The end result is a bar formatted table chart that has expanding and minimising rows. The code below works fine but I'd like to know if there is a cleaner way to achieve the same result (see JSFiddle ...
1
vote
0answers
20 views

Salary-structure report using a web-presentation

I had to create a report which presents the salary structure of a firm. The data needed was provided by the client as CSV-files. I used PHP for the reading and preprocessing of the data. The actual ...
1
vote
0answers
14 views

Creating Google Charts on SharePoint

I was creating a script to pull data from a SharePoint list and display its contents in graphical form on another page. My original script was very messy and I had asked advice on how I should ...
1
vote
0answers
29 views

Moderate return-low risk vs high returns-high risk investments

To quantify Buffet's #1 rule of investing, "Don't lose money", I take the assumption that % returns of an investment follow a Normal distribution. Now a high return high risk investment might follow ...
1
vote
0answers
25 views

Parsing server request data for visualization in C3.js

The following is a snippet from a script I have that fetches a list of objects representing requests to a server and graphs them using C3.js. I've only included the relevant code that parses the list ...
1
vote
0answers
69 views

P5 Isothermic Map Generator From Data Points

In my earth science class at school we had a lab where we went around the campus measuring the temperature at different place and marking it on a map. Afterword we were told to color the map using ...
1
vote
0answers
247 views

Statistic Chart With Filter

I have created an app, which show chart, table detail of chart, with filter date. I created app with Backbone and Marionette, chart with Chartist.js, and the filter date I'm using Pikaday.js and ...
1
vote
0answers
111 views

Hearthstone mana curve Google chart

My code displays a Google chart that shows a mana curve. I'm not very experienced with Google charts, so I'd like help optimizing my code. I'd like my code to be more readable and to have fewer lines (...
1
vote
0answers
1k views

D3 Map Visualization with tooltip and graph

I would love if someone had any feedback on how to optimize my code, suggest better color schemes, and improve my table. I created python scrapers to get the data from the CDC and menuism to get the ...
1
vote
0answers
56 views

Matlab bins with two features: calculation and plotting

I have the following code in Matlab, which is supposed to do what I asked in this SO question. The idea is to: Divide the temperature deadband of each agent (they are different between agents) into <...
0
votes
0answers
21 views

Normal Distribution and K-means clustering demonstration

I have two classes, the 1st one aims to display the Normal Distribution, and the 2nd one aims to perform K-means clustering. The emphasis is to build classes of the mathematical methods as examples ...