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
3
votes
1answer
61 views

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

A support case with the identification [CASE:4383277] was created. Background Following up on how TimelinePlot can be used to plot GanttCharts (176012) I noted ...
4
votes
1answer
34 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: <...
0
votes
1answer
58 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
votes
1answer
81 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 ...
3
votes
1answer
75 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, ...
4
votes
1answer
86 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", 3.}, {"Data ...
2
votes
1answer
46 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 ...
4
votes
1answer
86 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 ...
3
votes
1answer
93 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 ...
2
votes
3answers
53 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 ...
0
votes
1answer
50 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 ...
0
votes
0answers
32 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 ...
2
votes
2answers
50 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 ...
1
vote
1answer
69 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 ...
4
votes
1answer
78 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 ...
2
votes
2answers
41 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
1answer
52 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 ...
7
votes
2answers
441 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) ...
4
votes
2answers
93 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 ...
5
votes
2answers
88 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: ...
0
votes
0answers
25 views

Getting OHLC Values from Highlighted Candelstickchart

How can I acquire the OHLC values associated with a specifically highlighted candlestick within a CandlestickChart.
0
votes
0answers
39 views

How to add a custom indicator to InteractiveTradingChart or TradingChart?

I'm creating a prediction algorithm for certain stocks and I wanted to plot the result of my predictor against the stock's history. I wanted to create my custom "indicator" to add to a ...
2
votes
1answer
34 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: ...
0
votes
1answer
45 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?
17
votes
2answers
1k views

Causal Diagrams using Wolfram?

How can one use Wolfram to make diagrams like with the arrows labeled as well (to label "mediating factors" between the causal elements)?
6
votes
1answer
64 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 ...
7
votes
1answer
80 views

Formatting ChartLabels for a BarChart with ErrorBars

I have the following BarChart, that uses a custom ErrorBar function to plot error bars: ...
2
votes
1answer
30 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: ...
1
vote
1answer
35 views

BarChart LabelingFunction->Right label overlaps with chart label when BarOrigin -> Left

...
2
votes
1answer
48 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)?
1
vote
1answer
98 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 ...
1
vote
1answer
43 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, ...
2
votes
3answers
191 views

How to shorten or remove the “tick marks” below a BarChart?

I am trying to make those downward "tick marks" below the horizontal axis of a BarChart shorter or removed. They look very crowded in a figure like the following ...
2
votes
1answer
145 views

Sizing a `Labeled` figure

I am trying to control the overall width of a Labeled bar chart. However, it seems whether I put ImageSize->225 as an option ...
1
vote
1answer
42 views

Percentile BarChart with different EdgeForms

Is it possible to define different Edgeform's in a in a BarChart with ...
2
votes
1answer
118 views

Combine BarChart and TimeLinePlot

I have a Barchart like this: ...
1
vote
2answers
72 views

How can I employ custom coloring when using BubbleChart3D?

I have a table with 10 columns, obtained as import from file. I would like to use 4 columns as {x, y, z, u} params for ...
3
votes
1answer
96 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 ...
1
vote
1answer
37 views

Formatting several labels in BarChart

I have the following BarChart with labels on the bars and labels at the bottom: ...
8
votes
0answers
248 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: ...
1
vote
0answers
74 views

Use country flag in chart style for a bar chart

I am creating a stacked bar chart from 2017 using the following data set ...
2
votes
1answer
113 views

How can I animate the sorting by Sort, BarChart and Animate? [duplicate]

I try to make an animation of sorting like this but something goes wrong. ...
7
votes
3answers
426 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 ...
2
votes
2answers
289 views

How to plot this group bar plot?

I want to generate a barplot with the following characteristics. There are 5 users in the system. Each user has a demand. There are 2 suppliers. Each supplier tries to meet user demand as closely as ...
5
votes
1answer
98 views

Custom color for fence, whisker and outliers in BoxWhiskerChart

How can I use custom color for fence, whisker and outliers. Here is my MWE ...
2
votes
2answers
96 views

Grouping of BarChart and BarChart labels

Thanks to m_goldberg remarks here, the following BarChart was obtained: ...
1
vote
2answers
70 views

Adding the option ChartElementFunction -> “GlassBoxWhisker” to BoxWhiskerChart increases file size enormously

I would like to export BoxWhiskerChart figure as PDF file. Adding the option ChartElementFunction -> "GlassBoxWhisker" to <...
1
vote
1answer
56 views

Adding Legend to PieChart

Say counts = {0.18, 0.51, 0.31}; PieChart[counts, ChartLabels -> counts, PlotRange -> All, Frame -> True, FrameTicks -> None] I am completely ...
2
votes
1answer
81 views

Correct my use of BarChart labels

I need to make a good bar chart based on the table below (the number of nodes with its probability of falling correspond to each OF): Thanks to kglr I got the necessary BarChart: ...
3
votes
1answer
40 views

How to put ChartLabel of BoxWhisker top of the frame?

I would like to put chartlabel above the frame (highlited place). Any idea? ...

1 2 3 4 5