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$
  • $\begingroup$ What does "more specific" mean? $\endgroup$ – David G. Stork Jul 30 '18 at 17:22
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, privacy policy and cookie policy

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