Hi. I have not very large area for the chart, so i need to hide the labels to make the plot itself as large as possible. Is there any way to do that?
Thanks
Hello,
I am just checking about the progress of this issue. Let me know If you need my further assistance on this issue?
Thank you for using Infragistics Components.
Hello,
Thank you for your feedback. Please do not hesitate to contact with us if you have any further questions.
Hi and thanks for the reply. Sorry - I've missed your first post. I am still struggling to fix the issue and i will post back as soon as i try your solution.
I am just checking about the progress of this issue. Let me know If you need any further assistance on this issue?
What you could do in your case is to set position of the labels to be inside of the chart and also if you want you could “hide” labels if you add LabelFormatter which reruns empty string . you could use code like:
CategoryXAxis categoryAxis=new CategoryXAxis();
categoryAxis.setDataSource(categories); // tell the axis about the data table
categoryAxis.setPosition(AxisPositionType.INSIDE_END);
categoryAxis.setLabelFormatter(new CategoryAxis.LabelFormatter() {
public String format(CategoryAxis axis, Object item) {
return "";//(String)item; // return the axis item as a string
}
});
I hope that this will helps you.