3
$\begingroup$

Is there any more specific function to achieve this same result?

list={410, 1265, 2262, 2255, 3828, 6739, 15566, 12210}
BarChart[Apply [Labeled, Reverse [Transpose [{Range [Length[list]], list}], 2], {1}]]
$\endgroup$
1
  • $\begingroup$ What does "more specific" mean? $\endgroup$ Jul 30, 2018 at 17:22

1 Answer 1

6
$\begingroup$
BarChart @ MapIndexed[Labeled[#, #2[[1]]] &, list]

enter image description here

Alternatively,

BarChart @ Thread[Labeled[list, Range @ Length @ list]] (* or *)
BarChart[list, ChartLabels -> Range[Length @ list]]

same picture

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.