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

Questions tagged [charts]

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

20
votes
3answers
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 ...
19
votes
9answers
2k views

Finding the best way to visualize rather complicated data

I have the following data ...
17
votes
0answers
200 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. ...
13
votes
2answers
208 views
12
votes
0answers
216 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 ...
11
votes
1answer
454 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 ...
11
votes
0answers
528 views

How to style and position VerticalCallouts and RadialCallouts

Here is a pie chart with a labels placed with a "VerticalCallout" ...
10
votes
2answers
1k 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, ...
10
votes
1answer
744 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
3answers
816 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 ...
10
votes
1answer
120 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.
9
votes
3answers
431 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
2answers
779 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 ...
9
votes
3answers
725 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 ...
8
votes
2answers
494 views

How to make the bar be a button?

This is a BarChart: ...
8
votes
1answer
103 views

How to add inner ticks to a PieChart?

I know how to add Callouts to the outside of a PieChart, but I would like to add inner ticks like this: Note the 3, 6, 9, 12 ...
8
votes
0answers
122 views

How to get DensityHistogram bins like GeoHistogram bins?

Version 11 introduced GeoHistogram. It creates bins that align the edges with certain shapes. DensityHistogram can also use ...
7
votes
2answers
398 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 ...
7
votes
2answers
182 views

To Work with Barchart or DiscretePlot?

I would like to create a graph similar to this below using some slightly dotted bar style like the one shown in the figure ... And I'm trying to open a space between bars 6 and 8, but I'm failing. ...
7
votes
2answers
232 views

Timeline overview of implemented Mathematica functions

With WolframLanguageData[{"ListLogPlot", "Plot", "ColorNegate"}, "Timeline"] one gets information at what time and version a certain function was implemented: ...
7
votes
2answers
353 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: ...
7
votes
2answers
116 views

Screwy use of Labeled in BarChart — possible bug

SetOptions[BarChart, LabelStyle -> {}]; Options[BarChart, LabelStyle] When I evaluate this code ...
6
votes
2answers
1k views

How to create a bar chart from a list of heights *and* bin delimiter positions?

Basically, I'm trying to produce the same output that Histogram[giganticList] would produce, but starting from the output of ...
6
votes
3answers
364 views

Gantt Chart like rectangles with log scale

I need to plot something that looks like a gant chart, but are actual data ranges. These ranges need to be on a log scale. Graphics does not offer a Scalingfunction. A LogPlot with ErrorBars does not ...
6
votes
6answers
257 views

Straightforward way to highlight a single bar in a BarChart

I'm looking for a straight forward way to highlight a single bar in a BarChart, i.e. a BarChart of country GDP where you highlight your country. There's a great ...
6
votes
2answers
256 views

Waterfall Stacked BarChart

Trying to make a waterfall bar chart. I got this far: ...
6
votes
2answers
333 views

Floating Bar Chart

Does anyone know how to make floating bar charts in Mathematica v11.0? I can't seem to find any similar thread or related documentation. I'd like to make a simple one like the one above.
6
votes
2answers
48 views

stacked BarChart shows no edges for big list of data

For big numbers of columns, a stacked BarChart does not display edges anymore. For low numbers of columns they appear again. Is there a way to force Mathematica ...
6
votes
2answers
64 views

Change Edgeform for specific boxes in BoxWhiskerChart

I would like to change every second member of a pair in a BoxWhiskerChart to have a dashed EdgeForm. I can create a chart ...
6
votes
0answers
97 views

Is this a BarChart bug and is there a fix?

Trying to adjust the plot range in bar charts produces an unwanted result where the bars extend below the baseline/below the frame: ...
5
votes
4answers
512 views

Separate coloring for each bar in a Stacked BarChart

In a stacked bar chart, how do I give individual stacks separate colorings? For example, how would I modify the following code ...
5
votes
2answers
452 views

Adding labels to a bar chart with multiple data sets

I am trying to plot multiple data sets on a bar chart with unrelated column labels for each data set... Suppose my data is a list comprised of three different sub-lists of varying size, i.e., they ...
5
votes
2answers
257 views

Minimize distance between two lists

Writing: ...
5
votes
3answers
264 views

Axes Labeling in Bar Charts

How do I label a bar chart such that a list produced by Mathematica such as ...
5
votes
3answers
444 views

Striped bar in a bar chart

This is my code: ...
5
votes
2answers
219 views

Labeling columns in grouped charts separately

I want to label sequentially some charts. Say, for instance, that I had: ...
5
votes
2answers
302 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? ...
5
votes
3answers
464 views

Retrieving PlotRange from BarChart

Consider the following data: data1={73.9377, 54.4122, 53.0826, 24.1936}; data2={76.828, 49.1673, 45.7883, 18.9015}; I defined my own ...
5
votes
3answers
1k views

Histogram with specific colors

I have as example two data sets and want to make a combined histogram. When I do the following I can hardly distinguish which histogram belongs to which data. ...
5
votes
2answers
184 views

Improve BarChart

I am trying to display this BarChart in a nice way but now I have a problem that the first Bar is all squished and I can't see my labels for it. Moreover my axes should be scaled down and I don't know ...
5
votes
3answers
229 views

BarChart with empty bars removed

Consider the following BarChart: ...
5
votes
2answers
360 views

How do I animate a bar chart?

Is there any easy way to have an animated bar chart (one where the heights of the bars change with time)? I currently have the following code: ...
5
votes
1answer
1k views

LabelingFunction in BarChart displays bar-values below x-axis

I'm trying to visualize some data using a BarChart[] in Mathematica. The data should be placed (centered) inside the bars - except the bar is too small. In this ...
5
votes
2answers
333 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 ...
5
votes
1answer
106 views

PieChart and legending issues

I'm trying to do some bar charts and pie charts in Mathematica, but I can't figure out how to make the legend colors correspond to the actual colors on the charts. I'm running ...
5
votes
1answer
102 views

Comparing two groups - stacked bar chart with representation of each data point

I have a dataset comparing the performance of students on two exams, Exam 1 and Exam 2: I would like to create a stacked bar chart where each bar represents the grades on Exam 1 and the stacks in ...
5
votes
0answers
82 views

Geo data load issues: Texas is missing from GeoRegionValuePlot in v11, but only when mapping US states

UPDATE: this is not a global Mathematica issue, but a data load issue on a local machine. Does anyone know how to clear Geo cache and reload the data? I've also noticed on this machine that ...
4
votes
6answers
464 views

Plotting “Terrain” with “Water” on them Using BarChart3D

It's easy to present a terrain using BarChart3D using ChartLayout -> "Grid"with the following code: ...
4
votes
2answers
2k views

How to change BarChart labels font?

The question seems trivial, but no sign of such thing in reference. Also TicksStyle does not work for labels. Thanks, Regards
4
votes
1answer
259 views

How to create a graphics like presented on the mathematica website as part of the latest features of Mathematica 11

I was browsing through the new features of Mathematica 11 and found this picture on the website: I'm trying to replicate this graphic (except for the logo in the middle of course) by means of the <...