Questions tagged [data-visualization]

Data visualization is the study of the visual representation of data. Maps and charts are the most common types of data visualization, but there are many more.

Data visualization (or data visualisation) is the creation and study of the visual representation of data, and is closely related to information graphics, information visualization, scientific visualization, and statistical graphics.

In recent years, data visualization has become an active area of research, teaching and development.

There are different approaches on the scope of data visualization. One common focus is on information presentation. From a computer science perspective data visualization is comprised of:

  • Visualization algorithms and techniques
  • Volume visualization
  • Information visualization
  • Multiresolution methods
  • Modelling techniques
  • Interaction techniques and architectures
  • Infographics

There are several open source libraries that can be used to produce data visualizations including and for Python and for JavaScript.


Useful links


Related tags

7470 questions
2
votes
2 answers

xgboost.plot_tree shows - Empty characters/boxes/blocks as labels

SITUATION When I plot xgboost.plot_tree I get a bunch of empty characters/boxes/blocks on the graph only instead of the titles, labels and numbers. I use more than 400 features so that can be a contributing factor for this. CODE 1 fig, ax =…
sogu
  • 2,738
  • 5
  • 31
  • 90
2
votes
1 answer

How to center time series of different lengths around specific points in a ggplot graphic

Consider data created here: set.seed(123) data <- data.frame(time = c(1:1000, 1:1030, 1:2000), ID = rep(c('a','b','c'), c(1000,1030,2000)), variable = rnorm (4030)) We have measured some process variable over the life of 3 individuals, each of…
Ryan
  • 1,048
  • 7
  • 14
2
votes
0 answers

Plotly Choropleth data missing after exporting to html file

I am plotting data on a choropleth map using the geojson map of India. The map output is proper(no missing data) when I run it on a google Colab notebook but if I export the plot as an html file it misses a particular State on the map. Please help…
2
votes
1 answer

d3 selecting .attr('x1') returns r.getAttribute is not a function

I'm trying to track position of a line by xScale. So as soon as x1 becomes xScale1.range()[1] it reaches its final position and should change a colour. In the DOM line has x1 attribute with a certain value of 500. What am I doing…
Alina Khachatrian
  • 757
  • 1
  • 6
  • 19
2
votes
1 answer

Append a line to an end of a path in area chart d3

I'm trying to append a line to an end of an area chart path. The most difficult part my area is animated. I have a clipPath which width being transformed from width: 0 to width: 960 and the line at the end goes along with it so shoud be…
2
votes
1 answer

d3 area chart not being displayed

I'm trying to create a d3 area chart but nothing is being displayed. My guess is something wrong with xScale. I can see a path being added to the DOM, however d attribute is absent. What am I doing wrong? // Area chart width and height const width…
Alina Khachatrian
  • 757
  • 1
  • 6
  • 19
2
votes
1 answer

How to render the Nepali or Hindi text as label?

import matplotlib.pyplot as plt from matplotlib.pyplot import figure from matplotlib.font_manager import FontProperties hindi_font = FontProperties(fname = '/home/dip/WebScraping/fonts/Mangal.ttf') figure(num=None, figsize=(15, 6), dpi=80,…
Dipendra Pant
  • 365
  • 3
  • 9
2
votes
1 answer

How to remove the rectagular white colored frame from my ax.pcolormesh() density plot?

from mplsoccer.pitch import Pitch import pandas as pd import numpy as np import matplotlib.pyplot as plt from scipy.stats import kde np.random.seed(19680801) plt.style.use('dark_background') fields = ['id', 'minute', 'result', 'X1',…
DataNoob
  • 77
  • 3
  • 10
2
votes
0 answers

Overlapping thin line plots of multiple time series data

How can I achieve numerous, smooth, thin line plots that look like those in the first row of this post. The article mentions that the visualization are done using Pandas, matplotlib and Seaborn. What I have tried Suppose we have a separate power…
ktnr
  • 245
  • 2
  • 9
2
votes
1 answer

Plotting seaborn heatmap from XYZ data saved as different sized numpy arrays

I have three arrays from a certain experiment that looks like the following X : array of shape 19 X 1 Y : array of shape 350 X 1 Z : array of shape 350 X 19 If I do the following: sns.heatmap(Z,cmap='jet', cbar=True); The map is correct but X and Y…
2
votes
2 answers

Plotly: How to insert a categorical variable into a parallel coordinates plot?

So far, I have tried this: import pandas as pd import plotly.graph_objects as go df = pd.read_csv('https://raw.githubusercontent.com/vyaduvanshi/helper-files/master/parallel_coordinates.csv') dimensions = list([dict(range=[df['gm_Retail &…
callmeanythingyouwant
  • 1,789
  • 4
  • 15
  • 40
2
votes
1 answer

Density plot in R, ggplot2

I am trying to plot and compare two sets of decimal numbers, between 0 and 1 using the R package, ggplot2. When I plotted using geom="density" in qplot, I noticed that the density curve goes past 1.0. I would like to have a density plot for the…
wespiserA
  • 3,131
  • 5
  • 28
  • 36
2
votes
1 answer

Altair: How to Change Color of Line in Line Chart?

I have some time series data. I'm comparing 2 different series (predictions vs actual for a machine learning model). I have a line chart with both lines, but I can't figure out how to change the color of the lines, as all examples I see rely on…
Ragnar Lothbrok
  • 1,045
  • 2
  • 16
  • 31
2
votes
0 answers

For Altair (python) visualizations, is there a way to create color scheme that combines a manual range and an existing Vega-specified scheme?

For any given chart, I'd like to specify the first n colors for alt.Scale(range=), and then if there are _n+1_ data values, for Altair to fallback on color scheme, e.g. 'category10'`. In the following example, if there are 6 name values, Altair will…
dancow
  • 3,228
  • 2
  • 26
  • 28
2
votes
2 answers

Is it possible to define new shapes for plotting?

I see from here (http://sape.inf.usi.ch/quick-reference/ggplot2/shape) the set of possible shapes. If I wanted to define new shapes, is it possible? For example, suppose I wanted to use a 7-sided polygon with an optional fill aesthetic -- is there a…
Alex Coppock
  • 2,122
  • 3
  • 15
  • 31