Questions tagged [legend-properties]

legend-properties refers to various chart libraries and the ability to programmatically customise legends in charts generated by those libraries.

legend-properties refers to various chart libraries and the ability to programmatically customise legends in charts generated by those libraries. Examples for proper use of the tag is :

413 questions
0
votes
0 answers

switch legend text and symbol in barchart (R lattice)

I'd like to switch the legend text and the symbols in that way, that first the symbols appear and then the text right to it. At the moment you see first the describing text and then the symbol. But my text is so long that it would be better to have…
Susi
  • 1
0
votes
0 answers

Overriding scientific notation in ggplot's legend

This should be very simple, but I can't seem to find a solution. I am looking for the equivalent of scale_y_continuous, or scale_x_continuous in ggplot, but for the legend rather than the chart axes. Very simply, I am getting 5e+05 where I want…
RichS
  • 659
  • 12
  • 19
0
votes
0 answers

Setting a picker for items on a legend

I have created a line graph of some data in matplotlib. However, there are many observations, and so it is difficult to identify the trajectory of any single observation, as the graph is crowded. I would like to add a picker function to the legend…
0
votes
1 answer

Matlab plot legend automation

I am solving a pde that depends on x and t and would like to show the solution over all x for a few values of t. I am trying to write code that will automatically generate a legend for this plot. For example, if I am plotting the solution at t = 0,…
farid99
  • 712
  • 2
  • 7
  • 25
0
votes
0 answers

HighCharts, How to use a data name in a legend whilst also using drill downs in a column chart?

Hi I am currently developing a column high chart with a 3 level drill down however I am having bother naming the legend, I would like to have the legend displaying the data name however it is only displaying the series name at the moment. Also I was…
0
votes
2 answers

Highcharts Legend item text alignment

I have the following problem: I would like to align the text of the legend in the following way: Legend: [Color1] Title1:---------------100.000.000€ [Color2] Title23343334:-----100.000.000€ [Color3] Title23343334:------10.000.000€ Do you know how…
cimbom
  • 259
  • 1
  • 5
  • 23
0
votes
1 answer

How to show count of series in SSRS legend

I have a bar chart generated using SSRS, which has 3 series of data in it like 1. New 2. Delivered 3. backlog I would like to show the count of all the series parts in the legend. Example : New (70) Delivered (50) Backlog(20) I would also like to…
user2831167
  • 167
  • 2
  • 5
  • 15
0
votes
1 answer

Showing line with the right lineWidth in legend

I have a group of lines, with different width. I would like to show the same width of lines in the legend area, is there a way to do that? Currently, the legend only has the right color in a block (same size for all the lines.)
jp.
  • 1
0
votes
2 answers

how to show legend items of patches in bokeh

In the following set up, I create a area chart based on the basic example. How do I get the legend for my input automatically or even programatically. For now I get only legend with one item 'a' and the first color. from bokeh.plotting import…
rebeling
  • 718
  • 9
  • 31
0
votes
1 answer

How do I correctly set legend colors in ggplot2 with procedural graph generation?

I'm trying to create a framework for easy plotting of our data sets. The current idea is to initiate a ggplot graph, add layers to it, then display or save it. My code looks like this: initPlot <- function(title = "", data = NULL){ …
Simon
  • 1
  • 2
0
votes
0 answers

Highcharts Legend styles no longer rendering correctly

I have had these charts built for a couple months, and just today the styles of the legend seem to have shifted about 150px to the left. They were just right-aligned from the pie chart but now render directly over the top of the pie chart and I am…
Nick G
  • 1,209
  • 8
  • 34
  • 58
0
votes
0 answers

Controlling ggplot2 legend display order - Redux

Last July, Alastair asked a well-framed question about ordering the legends in ggplot2. Controlling ggplot2 legend display order I have a related but distinct question about adjusting the order of a legend comprised of lines created with…
0
votes
1 answer

Remove 'duplicate' element from ggplot2 legend in R

[Edited to have runnable code and with second approach] I've found several links that seem relevant here, here and here but can't see my way straight to figuring out how to apply them to my challenge: I have a line plot created with ggplot2 that…
0
votes
0 answers

Custom legend in a plot

I have a code which I draw a circle of given radius and color on some points of the graph. The following code is only a dummy example to illustrate how my code looks like. I also did use of some special cross markers. How should I make legend for…
Cupitor
  • 11,007
  • 19
  • 65
  • 91
0
votes
0 answers

Getting the Legend in R plotted outside the plotting area

I've a problem with R. I want to add a legend outside the plotting area, on the right side, growing from the northeast corner southward. So I searched for some code and wrote it to my code. The example given with this code works, but not with my…
1 2 3
27
28