Questions tagged [charts]
Questions about building charts in Mathematica. This includes generating the graphics, prettifying them, and using methods to extract their data.
437
questions
27
votes
6
answers
3k
views
Understanding Pie Chart Annulus generation and alternate style using Disk[]
Background
I have been working with a set of data for some time now and I recently decided to change the format. The data is a tree-styled listing of hierarchical names and positions.
(* Names ...
22
votes
2
answers
2k
views
How to create Diagrams using Wolfram / Mathematica?
How can one use Wolfram to make diagrams like
with the arrows labeled as well (to label "mediating factors" between the causal elements)?
21
votes
3
answers
1k
views
How to make a pie chart using custom image
Can we make a pie chart using a custom picture?
For example, consider this image of one cent coin:
I would like to use this image and cut pieces out, depending on data, and also make a clickable pie ...
21
votes
4
answers
8k
views
ListPlot with plotmarkers determined by point
I am trying to build on a simple example here:
td = Prime[Range[25]]
dsk = Graphics[{Blue, Disk[]}]
ListPlot[td, PlotMarkers -> {dsk, 0.7}]
How can I make ...
19
votes
9
answers
2k
views
Finding the best way to visualize rather complicated data
I have the following data
...
19
votes
5
answers
2k
views
Add a rug representation to plot
This question came to me when I read How convert list of numbers to list of points on x-axis?
@Mr.W suggested Interlacing a single number into a long list for the question. @Artes provides a very ...
19
votes
6
answers
8k
views
X-Y scatter plot with coloring dependent on Z value [duplicate]
I have an array of $(x,y,z)$ triples (array dimensions: N x 3), from which I can make a 2D scatterplot of $(x,y)$ values:
...
19
votes
0
answers
234
views
Why the Callout option makes plotting performance poor
Bug introduced in 11.0 and fixed in 11.1
The Callout option is a new option for plotting, but the performance is very poor, see bellow testing case.
...
18
votes
2
answers
884
views
Insets around a clock
I have this code to generate a clock-like diagram:
...
15
votes
6
answers
927
views
Better way to sort course grades
I use the following code to create a histogram of grades. Grades are provided as a List of strings such as "A-", "D+", "E" (don't ask), etc. The +/- substitution hack is necessary to sort the grades ...
14
votes
5
answers
2k
views
How to plot paired smooth histogram/distribution plots?
I've been trying to get paired distribution (aka "violin") plots like those shown below for a few hours, but all my attempts have failed.
The key features here are
paired smooth histograms/...
14
votes
1
answer
2k
views
Styling individual bars in a BarChart with grouped data
Consider the following:
...
13
votes
2
answers
289
views
13
votes
2
answers
1k
views
PieChart with radial coloring/color function
I am trying to visually compare multiple functions that depend on a single argument running from $0$ to $1$. They describe a radial property and so I thought it would be nice to use a kind of ...
13
votes
2
answers
399
views
How do I determine which ChartElementDataFunction is Automatic?
In the course of exploring @kglr's answer to Edmund's question gain some insight into how I might answer my own question here, I came across the undocumented ...
12
votes
3
answers
1k
views
How to create Gantt charts
How can one best create standard Gantt charts in Mathematica, where the horizontal axis is time (preferably in the Mathematica time format) and where one can include labels within each horizontal bar? ...
12
votes
3
answers
633
views
DistributionChart range extends beyond the data itself
I have a larger data set and want to display it using DistributionChart.
...
12
votes
3
answers
894
views
How can I highlight a moving bar in an animation of a bar chart?
I wrote the following code, but I don't know how to highlight the moving bar.
...
12
votes
3
answers
331
views
Strange Behavior in Barchart LabelingFunction
Bug introduced in 10.0.0 and fixed in 10.0.1
BarChart formatting algorithm make me loose some time today in V10.
Now, ...
12
votes
1
answer
856
views
Control parameters of different styles of DistributionChart
Using DistributionChart, you can choose among several styles aka ChartElementFunction:
...
12
votes
2
answers
566
views
How can I plot my financial indicator below a trading chart (produced by TradingChart) with the same x-axis?
Since this question was not answered, I would like to ask again with some additional information. I have a trading chart saved as chart1 as follows.
...
12
votes
1
answer
873
views
Update: Combining DistributionChart and BoxWhiskerChart
Goal
The goal is to merge the default styles of a few different charts; namely, to have a chart that:
has the key components of BoxWhiskerChart
the outline of the ...
12
votes
3
answers
6k
views
PlotRange adjustments with BarChart
I'm working on making some BarCharts, however, some of my data is contained within a small range so I want the plot to start above 0 and cut-off the bars below that,...
12
votes
2
answers
317
views
Manipulate for playing along with "Deal or No Deal?"
I started building this Manipulate and am certain I can do so on my own, but thought it was fun enough that others might want to try. (If this is some abuse of the ...
12
votes
0
answers
650
views
How to style and position VerticalCallouts and RadialCallouts
Here is a pie chart with a labels placed with a "VerticalCallout"
...
11
votes
2
answers
921
views
Creating a highly customized BarChart
I am trying to create a BarChart visualization for multi-step data filtering. Think of a traditional sales funnel: many leads, fewer prospects, few customers, very ...
11
votes
2
answers
2k
views
Reproducing the xkcd "Self-Description" comic
Trying to brush up on my programming, I wanted to see if I can reproduce at least the first two panels of the following comic in Mathematica:
I have some code for trying to reproduce the first panel, ...
11
votes
3
answers
2k
views
How do I overlay things onto a BarChart?
I have a fairly complex sort of BarChart that I want to overlay with other graphics. For concreteness, let's assume that I want to overlay a ...
11
votes
1
answer
149
views
PieExploded in newer versions
I am trying to explode one segment of a pie chart. How does this work in version 10. PieExploded is obsolete now. Can't find out how to use SectorSpacing for this.
Many thanks for a hint.
10
votes
3
answers
675
views
How does BoxWhiskerChart detect outliers?
BoxWhiskerChart can detect and show outliers:
...
10
votes
3
answers
1k
views
A better alternative to the paired bar chart
In an nice blog post about the horrors of the paired bar chart, Jonathan Schwabish proposes an elegant alternative, as follows. Instead of having pairs of yellow and blue bars, simply plot their ...
10
votes
1
answer
970
views
BoxWhiskerChart - 10-90th percentile instead of min - max
I am trying to draw a custom BoxWhiskerChart with alternative values determining fences.
I have data that has a lot of outliers and I have to compare it to another ...
10
votes
2
answers
604
views
Histogram3D frame ticks with bin text labels rendered in x-y plane?
Is it possible in Histogram3D to substitute frame ticks text labels and have the layout in x-y plane?
Starting with a ...
9
votes
3
answers
509
views
Plot PieChart as a line (or as a stacked BarChart)
How to plot relative proportions on a line? IE PieChart as stacked BarChart that is normalised.
For example,
...
9
votes
2
answers
4k
views
How can I make a list plot with bars?
Can anyone help me please? I don't want a Histogram; I don't want a BarChart, not even a ListPlot with drop down lines. I want a list plot with drop down columns/bars: please see the link.
It is ...
9
votes
4
answers
3k
views
BoxWhiskerPlot - how to specify boxes position on the horizontal axis
Let's say I have a folowing set of data:
k = 1 : list of values
k = 3 : list of values
k = 10 : list of values
I know that to make a BoxWhiskerChart I have to ...
9
votes
2
answers
5k
views
Histogram with Error bars
I have a dataset for which Mathematica easily creates a Histogram. However I also need Mathematica to show error bars corresponding to 3 standard deviations for ...
9
votes
3
answers
273
views
How to make callouts match the color of their target items?
How to make callouts in a bubble chart in the same style as below? Specifically, I'd like to know how to make the callout stems match their target bubble colors (automatically).
What I've tried:
<...
9
votes
2
answers
336
views
BoxWhiskerChart - how to show Quartile and other values
I have a question in respect of the BoxWhiskerChart.
The default functionality of BoxWhiskerChart is that you mouse over it and ...
9
votes
2
answers
233
views
How to force DistributionChart to plot empty datasets?
Is there any way to force DistributionChart to display anything where there is an empty dataset? In the below example I'd like to have ...
9
votes
1
answer
143
views
How to remove double ticks in bar charts and remove/ extend space between bars?
This is the bar chart. I need to remove the overextensions of the bar lines, reduce the space between consecutive A,B,C,D. However, I also want to retain/ add space between the three groups of ...
9
votes
3
answers
337
views
Decrease padding around Bar Chart
I don't like the default amount of padding / white space around BarChart. How can I specify it?
BarChart[{1, 2, 3}]
9
votes
4
answers
318
views
ChartLegends and BarChart Ignores ColorFunction
In version 11.0.1 it appears that ColorFunction is being ignored for BarChart with grouped data.
With
...
9
votes
2
answers
660
views
How to create a stacked BarChart with custom bar origins as function?
I want to create a simple stacked bar chart where the bars start a custom y-axis point and end at another y-axis point.
So far I have:
...
9
votes
2
answers
2k
views
MaTeX doesn't change fonts on axes?
I am running Mathematica 11.0, and am trying to create a bar chart to insert into a LaTeX document; since the document is in LaTeX, I would like the look of the chart to be in line with this, and so ...
9
votes
0
answers
333
views
EMF Export Bug in v12
Bug introduced in 12.0 or earlier
For some reason EMF vector image export deteriorates with every version.
In v12.0 for Windows create a simple BarChart:
...
8
votes
4
answers
447
views
Equivalent of RadialOutside for Graph VertexLabels
I'm creating a circular graph and want the labels to be placed on the outside of the vertices in a circular manner on the outside of the graph. I've been playing around with the ...
8
votes
2
answers
646
views
Bar chart scale in multi-chart visualisation
This is a rewording of a previous question which probably wasn't very well explained, and so didn't get any responses(!).
I'm trying to create a chart which shows the smooth kernel distribution of ...
8
votes
2
answers
241
views
V12.1 shows extra space using BarChart3D compared to V12
V 12.1 on windows 10 shows extra space above and below BarChart3D compared to V 12 using the same code.
I'like to put a label above this one below, but the space ...
8
votes
2
answers
541
views
How to make the bar be a button?
This is a BarChart:
...