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
5
votes
3answers
301 views

BarChart with empty bars removed

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

Circular table (spreadsheet like) - is it possible?

In the past, I've made a circular spreadsheet in Javascript, which can be seen in here : http://secteur-3.net/ARN-Public/ARN.html (left matrix). Each cell is bound to some data and have minimum ...
5
votes
1answer
2k 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
1answer
130 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
196 views

Complex labelling of a BoxWhiskerChart

I try and make a complex labelling on a BoxWhiskerChart. However, the solution I tried isn't working properly as ...
5
votes
2answers
430 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
2answers
93 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: ...
5
votes
1answer
157 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
94 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
506 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
3k 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
3answers
156 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 ...
4
votes
1answer
287 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 <...
4
votes
2answers
540 views

Tuning BoxWhiskerChart

I have a large set of experimental data points (n) and I want perform some statistics on them. Particularly instead of showing all data points using ...
4
votes
2answers
245 views

Extracting Color Options from BarChart

I would like to extract the colors (i.e., obtain RGBColor[] or other full specification) of the different colors used in a bar chart such as this ...
4
votes
3answers
223 views

Displaying horizontal axis as legend of a chart/plot?

I'm trying to do a BarChart[] of some data and I'd like to add an additional XX axis below the chart with some additional information. This may also be done with an ...
4
votes
1answer
96 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&...
4
votes
2answers
202 views

Plot a gradient line on bar chart

Hi I have a question on how to plot a calculated gradient fit (fd4,fdata4) into a bar chart. Data 1 is the raw data, using FindFit function I got the gradient fit ...
4
votes
1answer
101 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 ...
4
votes
2answers
106 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 ...
4
votes
2answers
78 views

Stacked Bar Chart with individual spacings to compare pairs of bars

I would like to plot a stacked BarChart BarChart[RandomReal[1, {6, 4}], ChartLayout -> "Percentile"] with modified ...
4
votes
3answers
778 views

Plot two sets of data in one BarChart

I have two sets data as following: ...
4
votes
2answers
148 views

How to extract (absolute) Tick and/or PlotRange specs from output of Histogram?

If, for example, g = Histogram[RandomVariate[NormalDistribution[0, 1], 200]]; ...I want to extract an absolute (abscissa) Tick...
4
votes
1answer
379 views

How to access box-and-whisker specifications from custom ChartElementFunction?

I am creating a custom ChartElementFunction for BoxWhiskerChart. I would like to access the box-and-whisker specifications from ...
4
votes
1answer
44 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: <...
4
votes
1answer
156 views

How to make swatch legend match the chart's texture?

I am making a stacked bar chart which represents the concentration of a battery in different metals. I would like to make the metals differentiatable by adding a bit of texture to the rectangle in ...
4
votes
1answer
2k views

BarChart x-axis labels

I am trying to put specific labels on the x-axis of my bar graph. There are 56 bars. I want to have labels 1960, 1970, ... and 2010 on bars 1, 11, ... and 51 respectively with ticks at only those ...
4
votes
1answer
100 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 ...
4
votes
1answer
175 views

Distribute labeling function over a list in order to assign different labels in a PieChart

I have a PieChart: PieChart[{{1, 2, 3}, {4, 5, 6}}] I want to label each sublist differently, but ...
4
votes
1answer
98 views

Manipulate with generated controls for setting each bar in a bar chart

I would like to create a list of parameters, then create a Manipulate with these parameters. Similar to this piece of code: ...
4
votes
1answer
95 views

Adjusted Bar chart label rotation

I'm currently working on a bar chart diagram, where the vertical axis starts from 0.9. I managed to adjust the labels, but I don't know how to rotate it to make it readable. The code is the following:...
4
votes
1answer
1k views

Histogram: Compare PDF to Data

Goal I would like to make a plot which satisfies the following: Formost it should contain the Histogram of the data, with an overlay of the PDF Two y-axes, the left being the count for the elements ...
4
votes
2answers
334 views

How can I create a chart like CandlestickChart, but for non-financial data with something other than dates as the abscissæ?

I'd like to create charts reporting on Monte-Carlo experiments using something like a candlestick chart: four figures for each run with a varying parameter, eg min, mean - σ, mean + σ, max of the ...
3
votes
2answers
2k views

Plot negative and positive logarithms? [duplicate]

I'm trying to do a barchart of some negative and positive numbers. How can I show them all in Log space so that you can clearly see very big and very small exponent values? ...
3
votes
2answers
337 views

Does “MeanMarker” (BoxWhiskerChart) exclude outliers?

When you use the "MeanMarker" function within BoxWhiskerChart, does the mean shown on the box plot exclude the near and/or far ...
3
votes
2answers
205 views

Pie chart grid with a common legend

I want to construct a grid of pie charts but I want the legend (which is common to all charts) to appear at the bottom of the grid.I include the code and a picture of the output. Code updated with ...
3
votes
1answer
75 views

Barchart more practical

Is there any more specific function to achieve this same result? ...
3
votes
2answers
112 views

Need help charting school shootings by year and number of victims

For my school project I've decided to take some data from Wolfram. I have the dataset from Data Repository, and I want to create three BarCharts. The first one shows the highest number of fatalities. ...
3
votes
1answer
240 views

Horizontal equivalents of Above / Below for labeling bar charts?

NB: For this post, I'll use bar's end as shorthand for the end of the bar that's opposite to the bar's origin. In bar charts, the Above symbol can be used to ...
3
votes
2answers
295 views

Display asterisk as it enter in Mathematica v11

In Mathematica v11, entering an asterisk from keyboard would be displayed as a 'times' operator, ie, it is not placed at top right corner of a text (as in Mathematica v9). I notice [Star] and [RawStar]...
3
votes
1answer
85 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, ...
3
votes
2answers
76 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 ...
3
votes
1answer
134 views

Remove transparency in Histogram

I have the following code, which places the data s1, s2, and s3 on a histogram as shown below. I would like the transparency set ...
3
votes
1answer
134 views

How to remove edge forms completely from a pie chart?

Consider a pie chart as follows ...
3
votes
1answer
224 views

Rearrange colors in BarChart

I have the following code which produces an animated bar chart. ...
3
votes
1answer
43 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....
3
votes
1answer
98 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 ...
3
votes
1answer
104 views

How to change a part of the BoxWhiskerChart?

My intention is to change the style of the bottom of the BoxWhisker Chart after drawing of the BoxWhiskerChart. For instance: lines of the BoxWhiskerChart are Thick but change to dotted bellow ...
3
votes
1answer
86 views

PairedBarChart: Remove space at bottom and add tick axes

I have two questions about adapting a PairedBarChart to my needs. 1.I have a PairedBarChart with many bars like this ...
3
votes
1answer
333 views

Horizontal Bar Chart splitting axis, and putting labels in the the center

I am trying to generate a horizontal bar chart which is centered at zero. Currently what I have is this: And the code that I am using is: ...