sagittaracc Posted August 25, 2020 Report Share Posted August 25, 2020 1. Horizontal scroll not shown in 3d model but it's okay for 2d. free version 2. if heights of bars are not big i can't see the labels 3. the max value on y-axis being calced wrong. The labels cut off by the top border what am i supposed to do? Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted August 25, 2020 Report Share Posted August 25, 2020 1. Unfortunately scrolling is not supported in 3D charts, the reason for this is that in 2D we render all the points and when scrolling only change clipping and location of the viewport for performance reasons 2. Not sure what you mean by this, please provide screenshot. 3. About the labels, we do not consider the labels as part of the calculation of the Axis Min/Max so it is possible they will get clipped. The only workaround would be for you to set the Min/Max to ensure this does not happen. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
0 sagittaracc Posted September 10, 2020 Author Report Share Posted September 10, 2020 Doesn't matter what those labels say in Russian. As you can see when a bar is small it's impossible to see the label which has to be UNDER the top border since it's a stacked bar. Thank you! Quote Link to comment Share on other sites More sharing options...
0 sagittaracc Posted September 15, 2020 Author Report Share Posted September 15, 2020 On 8/25/2020 at 8:42 PM, JuanC said: 1. Unfortunately scrolling is not supported in 3D charts, the reason for this is that in 2D we render all the points and when scrolling only change clipping and location of the viewport for performance reasons 2. Not sure what you mean by this, please provide screenshot. 3. About the labels, we do not consider the labels as part of the calculation of the Axis Min/Max so it is possible they will get clipped. The only workaround would be for you to set the Min/Max to ensure this does not happen. Regards, JuanC There's my response up there Quote Link to comment Share on other sites More sharing options...
0 JuanC Posted September 15, 2020 Report Share Posted September 15, 2020 If your chart has only 1 series, there is a workaround which is to try to show the labels on top of the bars except of bars that are too close to the top, unfortunately this is not a built in feature so you will have to loop through your values and adjust the per-point label attributes, e.g. something like this for(var i = 0; i < chart1.getData().getPoints(); i++) { var value = chart1.getData().getItem(0, i); if (Math.abs(value - max) <= factor) { chart1.getPoints().getItem(0, i).getPointLabels().setLineAlignment(cfx.StringAlignment.Near); } } Where max is the maximum of your data values and factor is calculated to make sure you only change the point label alignment for the values that are close to the top so are likely to get clipped in a scrolling chart. Regards, JuanC Quote Link to comment Share on other sites More sharing options...
Question
sagittaracc
1. Horizontal scroll not shown in 3d model but it's okay for 2d. free version
2. if heights of bars are not big i can't see the labels
3. the max value on y-axis being calced wrong. The labels cut off by the top border
what am i supposed to do?
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.