Bar Chart Data Label Positioning

(4 posts) (2 voices)

Tags:

  1. ajdjackson, Member

    Hi

    Is there any way to have the chart data labels inside the bar as below?

    Thanks

    Jake

  2. myDBR Team, Key Master

    You can use few ChartDirector commands to do similar. The easiest way would be to do something like this:

    Demo

    With more effort you could finetune it to be whatever you want it to be, but you could consider if the effort is worth it.

    --
    myDBR Team

  3. ajdjackson, Member

    Thanks that works.

    One issue I'm having is how to set the bar width. I've tried select 'dbr.chart.options','width_per_item',30; etc but the width of the bar doesn't change.

    I'd need the widths to align - see chart.

    Cheers

    Jake

    Bar Chart

  4. myDBR Team, Key Master

    When you set a defined size for the chart, the bars are layed out to fill the chart. The default space between the bars is 20%. You can change that with the bargap option (0...1). So the option:

    select 'dbr.chart.options', 'bargap', 0.5;

    gives you gaps that are as wide as the bars.

    The `width_per_item` option is used when you set the width of the chart to be 'auto', then the width of the bars times labels define the chart width.

    --
    myDBR Team


Reply

You must log in to post.