Questions tagged [charts]

Questions about building charts in Mathematica. This includes generating the graphics, prettifying them, and using methods to extract their data.

Filter by
Sorted by
Tagged with
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 ...
MRN16's user avatar
  • 601
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)?
George's user avatar
  • 3,115
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 ...
xslittlegrass's user avatar
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 ...
John Smith's user avatar
19 votes
9 answers
2k views

Finding the best way to visualize rather complicated data

I have the following data ...
Vaggelis_Z's user avatar
  • 8,560
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 ...
Kattern's user avatar
  • 2,541
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: ...
F'x's user avatar
  • 10.8k
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. ...
Jerry's user avatar
  • 2,409
18 votes
2 answers
884 views

Insets around a clock

I have this code to generate a clock-like diagram: ...
Rodrigo's user avatar
  • 1,304
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 ...
bobthechemist's user avatar
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/...
kjo's user avatar
  • 11.7k
14 votes
1 answer
2k views

Styling individual bars in a BarChart with grouped data

Consider the following: ...
Verbeia's user avatar
  • 34.1k
13 votes
2 answers
289 views

Can I change text color in bar graphs based on the underlying bar color?

My code: ...
stevenvh's user avatar
  • 6,836
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 ...
Markus Roellig's user avatar
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 ...
Pillsy's user avatar
  • 18.3k
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? ...
David G. Stork's user avatar
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. ...
Kardashev3's user avatar
  • 1,354
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. ...
chyanog's user avatar
  • 15.1k
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, ...
Murta's user avatar
  • 26.1k
12 votes
1 answer
856 views

Control parameters of different styles of DistributionChart

Using DistributionChart, you can choose among several styles aka ChartElementFunction: ...
Raphael's user avatar
  • 559
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. ...
DLT's user avatar
  • 235
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 ...
SumNeuron's user avatar
  • 5,372
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,...
s0rce's user avatar
  • 9,572
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 ...
David G. Stork's user avatar
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" ...
Mike Honeychurch's user avatar
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 ...
Gregory Klopper's user avatar
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, ...
Mayumi Itō's user avatar
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 ...
Pillsy's user avatar
  • 18.3k
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.
Darwin1871's user avatar
10 votes
3 answers
675 views

How does BoxWhiskerChart detect outliers?

BoxWhiskerChart can detect and show outliers: ...
Szabolcs's user avatar
  • 233k
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 ...
Corvus's user avatar
  • 397
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 ...
jps's user avatar
  • 101
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 ...
alancalvitti's user avatar
  • 15.1k
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, ...
Karolis's user avatar
  • 1,639
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 ...
Uttam Pal's user avatar
  • 449
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 ...
JohnnyM's user avatar
  • 489
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 ...
Heerak Banerjee's user avatar
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: <...
user5601's user avatar
  • 3,621
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 ...
Jiri's user avatar
  • 215
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 ...
István Zachar's user avatar
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 ...
krygh's user avatar
  • 159
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}]
Tom's user avatar
  • 3,366
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 ...
Edmund's user avatar
  • 41.7k
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: ...
Thomas Fankhauser's user avatar
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 ...
aidangallagher4's user avatar
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: ...
iav's user avatar
  • 1,995
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 ...
shellhead's user avatar
  • 115
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 ...
cwalker's user avatar
  • 161
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 ...
Nasser's user avatar
  • 137k
8 votes
2 answers
541 views

How to make the bar be a button?

This is a BarChart: ...
yode's user avatar
  • 26.3k

1
2 3 4 5
9