60 reputation
4
bio website
location
age
visits member for 1 year, 6 months
seen Feb 17 at 19:36

Jan
6
comment BarChart include multiple fields on x-axis
Thank you for your help!
Jan
6
comment BarChart include multiple fields on x-axis
I tried code BarChart[#, ChartStyle -> "DarkRainbow", AspectRatio -> .3, ImageSize -> 600, PlotLabel -> Framed[Text[ Grid[{{Style["Entities with same address", Blue, FontSize -> 18]}, {Style[ "Address's with 200 to 6999 entities", Red, FontSize -> 12]}}]]], ChartLabels -> (Placed[ Rotate[Style[Row[Riffle[#, ", "]], Black, 10], Pi/2] & /@ Transpose[{#2, #3, #4}], {{4, 0}, {3, 1}}])] & @@ Transpose[rEntities]
Jan
6
comment BarChart include multiple fields on x-axis
I like your solution the best, however when using it where there are 50 columns I need to rotate the label's so they are vertical and under their respective bar.
Jan
5
asked BarChart include multiple fields on x-axis
Jun
11
accepted How to place Plot Information within a Text box on top of a Bar Chart?
Jun
11
awarded  Commentator
Jun
11
comment How to place Plot Information within a Text box on top of a Bar Chart?
Thanks, Is there a way to change the font and un-bold the second line?
Jun
11
asked How to place Plot Information within a Text box on top of a Bar Chart?
Jun
5
awarded  Scholar
Jun
5
awarded  Supporter
Jun
5
accepted Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
Jun
5
accepted How to center the labels on a bar chart so they are directly under their respective bar?
Jun
5
accepted How to create bar or pie chart from sql query where legend automatically uses list [[2]] element
Jun
4
comment Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
If it helps, the chart will be going on a website with a gray background.
Jun
4
comment Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
Yes, I am new to Mathematica. I used: With[{n = Length[Transpose[totals4][[2]]]}, BarChart[Transpose[totals4][[1]], ChartStyle -> "Pastel", ChartLabels -> MapIndexed[ Style[#1, ColorData["Pastel", Rescale[#2[[1]], {1, n}]]] &, Transpose[totals4][[2]]]]]. The labels are the same color now which is good, however they need to be rotated. I tried to insert (Placed[Rotate but was unable to get it to work, perhaps as I was not sure where to place ending ) and ].
Jun
4
comment Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
The exact color for the country does not matter. Usually there are thirty countries in the chart, that is why hard coding it is not an option. Basically I want to take whatever color Mathematica assigns to a particular bar and then use the same color in the label. If this is possible it would be great.
Jun
4
comment Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
Well the query that generated the data was this one: totals4 = SQLExecute[conn, " SELECT t2.cnt, t2.description FROM name_loc t1 INNER JOIN ( SELECT COUNT() 'cnt', f.fk_cnty_id 'fk_cnty_id', c.description \ 'description' FROM name_loc f INNER JOIN countries c ON f.fk_cnty_id = c.id and c.letter_code <> 'US' INNER JOIN identifiers i ON f.fk_ident_id = i.id GROUP BY f.fk_cnty_id HAVING COUNT()>100 ) as t2 ON t1.fk_cnty_id = t2.fk_cnty_id GROUP BY t1.fk_cnty_id limit 4 "]
Jun
4
comment Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
The name of the countries will change depending upon the query. Is it possible to not hard code it? In other words Australia is Purple and Belgium would be Orange and so on. If it is not possible with labels is it possible with legends?
Jun
4
comment Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?
totals4 has this data: {{1093, "AUSTRALIA"}, {235, "BELGIUM"}, {474, "BERMUDA"}, {187, "BRAZIL"}}
Jun
4
asked Using BarChart and pastel colors is there a method to get the labels to be the same color as the bar?