# Questions tagged [charts]

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

441 questions
Filter by
Sorted by
Tagged with
383 views

### Polar Bubble Chart

I would like to create a plot similar to that in the figure 1. I tried using both ListPolarPlot and BubbleChart, but they do not have the right option for creating a polar bubble chart. Any suggestion?...
95 views

### Multiple legends for barCharts

I came across this and found it quite cool. Here is the minimal example: ...
• 701
144 views

### Plotting a Set of Three Points with Histogram3D

I would like to know whether I can use Histogram3D to plot a set of points with three given values. I want to plot the values {0, 0, 0.01}, {0, 1, 0.1}, {1, 0, 0.02}...
• 271
168 views

### How-to generate a stacked BarChart?

I would like to generate a stacked BarChart using following sudo dataset. ...
• 5,979
90 views

### Display Table output as a 3D bar chart

Create a simple function with arguments {i,j}, and make a Table for an array of values. For example: ...
• 2,233
374 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}]
• 3,416
55 views

### How to obtain Detele

From a={{6, 4}, {8, 1}, {11, 3}} How to obtain {{6, 8, 11}, {6, 11}, {6,11}, {6}} or ...
• 3,261
79 views

### Modified BoxWhiskerChart for statistical summary of data

I would like to make a statistical graph (chart) from data in the format {x-value, mean value, standard deviation} as in: {{10, 10.73, 0.72}, {20, 14.10, 0.49}, {30, 13.96, 0.49}, {40, 13.43, 0....
• 41.7k
68 views

### Apparent discrepancy between visual and calculated Mean in Histogram

From a randonly generated normal distribution of values v: v = RandonVariate[NormalDisrtibution[56.6*10^-9,2.5*10-9]] I ...
305 views

### Stacked grid BarChart3D

I'm looking to use BarChart3D (in "Grid" mode) to show the elements of two real & positive matrices simultaneously. Since this will become a function in a ...
• 1,211
614 views

### Generating a broken or snipped Y axis in BarChart

Is there a way to reproduce the following behavior in BarChart? I have seen this in ListPlot, but I am not sure how it can be ...
92 views

### DistributionChart only shows entries with more than one value

DistributionChart does not show entries for sublists containing only one element. Although I can understand why this would be reasonable (there's no "distribution" of a single element), it seems that ...
• 3,376
78 views

### Mixing a BarChart and BoxWhiskerChart

I am trying to put together a BarChart and a BoxWhiskerPlot in this form: ...
• 637
243 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 ...
• 146k
60 views

### Is there a better way to space ChartLabels?

I am looking for a better way to specify the spacing between ChartLabels when using BarChart. My current implementation uses ...
• 1,290
459 views

### Barchart: Displaying multiple data sets and filling pattern

Is there a way I can code the following excel bar chart into Mathematica. Is there any guidebook I can follow? I’m struggling displaying multiple data sets into one figure and filling in the bar with ...
211 views

### Why do GridLines/Ticks in TimelinePlot not make sense in some cases and what to do about it?

Fixed in 13.0 Background Following up on how TimelinePlot can be used to plot GanttCharts (176012) I noted some peculiarities ...
• 13.5k
164 views

### Rotate Ticks in a Histogram

I have a histogram like the one presented here by @kglr (Combine BarChart and TimeLinePlot). For the sake of brevity, I excluded the issue with timelineplot: <...
• 731
143 views

### How can I dynamically label Bar charts

I found the following labeling code (by @Brett) and like to use it as an example: ...
• 6,233
685 views

### How does BoxWhiskerChart detect outliers?

BoxWhiskerChart can detect and show outliers: ...
• 236k
194 views

### Legend for Bubblechart

I am trying to create an easy legend with bubbles for a Bubblechart. The legend should have the BubbleSizes -> {.02, .05}, for the scores 3 to 8 and ranging with the rainbow colors. Basically this ...
• 301
203 views

### BarChart Labels for two lists

a quick question: I am trying to label a BarChart that consists of two lists (groups). The label should keep going on with the Label list (so ddd, eee, fff) and not repeat itself (and start from aaa, ...
• 301
297 views

### Tooltip for BarChart

I'm not looking for something super fancy, but just getting BarChart to show X value and Y value seems to be challenging to get. Here's a toy example. data = {{"Data 1", -10.}, {"Data 2&...
86 views

### BarChart simultaneous axes label and numerical label

So I want to be able to put axes labels simultaneously as the numerical labels. I can achieve that with the following, but is there a better/cleaner way? I can't use callout, because I am using ...
• 991
205 views

### How to force DensityHistogram to draw empty bins?

By default, when using the "Count" density specification, DensityHistogram does not plot empty bins. And thus the legend starts ...
• 1,529
127 views

### Create a custom diagram

Suppose we have the following list with a row of integer numbers data = {0, 0, -1, 1, 1, 2, 9, -2, 2, 1, 1, 1, 0, 0, 9, 9, -1, 0, 9, 2} Each integer corresponds ...
• 8,790
218 views

### Changing Y-Axis to "Billions of Dollars"

Is there a way to change my bar chart's Y-axis from powers of 10 to "billions of dollars"? For example \$100,000,000,000 should read as ...
• 3,145
69 views

### plot a performance envelope (changable ellipse) [closed]

I am learning by myself to use Mathematica. I am quite new actually. I'd like to plot something that resembles the picture below, but here's the thing, I want to know if there is a possibility to ...
• 21
1 vote
170 views

### How to merge a polar plot, histogram and density colour values?

I am trying to get direction data into an histogram a circular one. Something like this: ...
896 views

### Insets around a clock

I have this code to generate a clock-like diagram: ...
• 1,534
1 vote
53 views

### Making a histogram of a dictionary

I am trying to make a histogram of the dictionary where each bin is how many characters in a word, and the height is the frequency of words with that many characters. I'd like to make one for the ...
192 views

### Change colour of bar in stacked bar chart within range

I'm trying to change the colour of a bar when a number falls within the range. For instance, here is a stacked bar chart ...
• 547
217 views

### Ideas for styling graph nodes with weights

Suppose we have the following random graph SeedRandom[100] n = 15; m = 20; G = RandomGraph[{n, m}, VertexLabels -> "Name"]; and a list of weights for the ...
1 vote
182 views

### Manipulate chart disappears when sliders are moved

I have a Manipulate function that has two other functions inside of it, it has two sliders that each take in a value and show a bar on a graph from each input. Each value is shown on the chart as part ...
• 263
326 views

### BarChart and ColorFunction

There are really two questions. The first is: how does one get BarChart to generate x coordinates. That is, ListPlot takes a list of pairs, but ...
• 5,094
160 views

### BarChart: First Bin centered at 0 instead of 1

I want to plot an overlapped graphic comparing the experimental and theoretical data of the number of counts in a given time (beta decay), so I show them in a histogram. Because of sometimes the ...
1 vote
71 views

### Use special characters or regular characters with BubbleChart

I have a list of points I want to plot. I'm trying to use BubbleChart because I want to assign to each point a different shape. How do I plot a BubbleChart with each point drawn with a different ...
• 981
800 views

### How to plot two axis bar chart side by side

I want to plot a bar chart using the given data, I am trying to plot by given code but chart only slightly displaced( I want it to the side by side) ...
• 1,065
184 views

### How to create a BarChart[] with color rules determined from categorical data?

Let's say I have a list of color names (strings), like this: samples = {{"blue, red, red"}, {"purple, blue, purple"}, {"blue, blue"}}; Then I can plot the ...
• 1,603
122 views

### ChartBaseStyle in BarChart3D - possible bug

It looks like ChartBaseStyle in BarChart3D doesn't work in Grid mode when the matrix is larger than 9x9: ...
• 6,087
54 views

### How to increase the pointsize of the point-markers in the legend of a cluster-chart?

I start the following mock data set: data = RandomReal[{0, 700}, {10^4, 2}]; I use k to define the number of cluster points: ...
1 vote
143 views

### Why are callout labels being double counted on my stacked bar chart?

See below: The problem is that the "leftist" labels are being counted twice on the right stacked bar. How to fix this?
• 3,145
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)?
• 3,145
202 views

### Remove ticks from chart labels

Given the following chart: BarChart[{{1, 2, 3}, {4, 5, 6}}, ChartLabels -> {{"r1", "r2"}, None}] How can I remove the ticks of the chart labels (marked with ...
• 2,995
155 views

### Formatting ChartLabels for a BarChart with ErrorBars

I have the following BarChart, that uses a custom ErrorBar function to plot error bars: ...
• 2,995
119 views

### Create inclined chart labels on stacked bar charts

Ive hunted high and low for a solution. I can put inclined labels on bar charts: ...
• 421
1 vote
149 views

...
• 10.2k
89 views

### Making a BarChart of a Two Column Dataset

If I have a 2-column dataset like: How do I make a BarChart in the obvious way (i.e., bars labeled by FileName, in this case)?
• 3,145
135 views

### Making a Stacked GitHub Bar Chart [closed]

Here's a picture of what I mean by a stacked bar chart: Question: For the following GitHub repos: Organization1/Repo1 (branch: branch1) Organization2/Repo2 (branch: branch2) How can one make a ...
• 3,145
92 views

### Stacked Bar Chart with a bar showing the forecasted quantity and the real quantity as the part of this bar

I was looking for a way to make a stacked bar chart, where a bar shows the forecast and the real quantity as the part of the forecast. So, if the forecasted quantity is 10 and the real quantity is 5, ...