Position of datalabel in bar graph using C# (interop)
I have a bar chart that I generate dynamically. I have used a tricky fix
to show datalabel above the series. I use two graphs, setting fill
property of one of them to none. Then I set the datalabel of this
invisible graph to "Inside Base". Thus I can set the ranges of both graphs
to same selection and display same data.
The issue I am facing is that when the length of datalabel exceeds the
length of corresponding bar, the label tends to shift left and go outside
the plot area. Due to this, the data label appears clipped from left.
Is there a way by which I can set the position of datalabels of a bar
graph relative to the plot area? Like setting the left of datalabel to
parent.Position.Left +10 ?
No comments:
Post a Comment