The MindFusion Forums
Gauge and Chart Components >> Windows Forms >> Outer labels doesn't work with horizontal stacked bar chart
https://mindfusion.eu/Forum/YaBB.pl?num=1506026907

Message started by abhi dhotre on Sep 21st, 2017 at 8:48pm

Title: Outer labels doesn't work with horizontal stacked bar chart
Post by abhi dhotre on Sep 21st, 2017 at 8:48pm
It works fine when the bar chart is not stacked. Please refer to attached screenshot below.
Thanks,
Abhi
Untitled_005.png ( 41 KB | 254 Downloads )

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by Slavcho on Sep 22nd, 2017 at 3:42pm
Labels of stacked bars are drawn above their bars in horizontal stacks, or rotated on right side of bars when vertical. I.e. if you had outer labels for the other series you'd see labels above the red and yellow bars too. We could add an option to pull all labels on the right of the whole stack if that's what you expect.

Regards,
Slavcho

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by abhi dhotre on Sep 27th, 2017 at 5:32pm
Thank you Slavcho. Yes, I'm expecting them to be on the right-hand side of the whole stack.

Abhi

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by Slavcho on Sep 28th, 2017 at 5:58pm
Try the StackOuterLabels property from this build -
https://mindfusion.eu/_beta/chart_stacklabels.zip

If enabled, it will draw labels stacked on top of the vertical bar stack, or to the right if horizontal bars.

Regards,
Slavcho

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by abhi dhotre on Oct 2nd, 2017 at 9:30pm
Hey, Slavcho,
The labels got rotated 90 deg after setting the stack outer label property i.e. the orientation changed from horizontal to vertical. I have attached a screenshot for ref, also I have PM you code I'm using.
Capture_004.PNG ( 21 KB | 229 Downloads )

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by Slavcho on Oct 3rd, 2017 at 7:00am
Hi Abhi ,

It's by design, so the chart can fit more labels when each series in the stack adds one. I guess we can implement a special case for when there's a single label for the whole stack, or add a property for rotation angle.

Regards,
Slavcho

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by abhi dhotre on Oct 3rd, 2017 at 2:08pm
I was expecting something like this for the stacked chart control also. Horizontal Outer data labels like shown in the screenshot below.
Thanks,
Abhi
Capture_005.PNG ( 20 KB | 223 Downloads )

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by abhi dhotre on Oct 13th, 2017 at 2:16pm
Hi Slavcho,
When can I expect new control libraries with rotation angle included for charts?
Thanks,
Abhi 

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by Slavcho on Oct 17th, 2017 at 10:35am
Hi Abhi,

This build adds OuterLabelRotation property -
https://mindfusion.eu/_beta/chart_stacklabels.zip
[code]
barChart1.OuterLabelRotation = 0;[/code]
Works only for horizontal bar stacks at this time. We'll try to implement remaining cases in next few days.

Regards,
Slavcho

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by abhi dhotre on Oct 17th, 2017 at 3:41pm
Thanks a lot, Slavcho. It's working perfectly now.  :)

Title: Re: Outer labels doesn't work with horizontal stacked bar chart
Post by Slavcho on Nov 9th, 2017 at 2:58pm
This build adds BarChart.InnerLabelRotation property you requested earlier too -
https://mindfusion.eu/_beta/inner_rotation.zip

Regards,
Slavcho

The MindFusion Forums » Powered by YaBB 2.6.11!
YaBB Forum Software © 2000-2024. All Rights Reserved.