I have created application which use this Bar chart.To show issue to you I have also created Demo application and Chart related snippet is as follow:
Code: Select all
TChart chart = new TChart(this);
LinearLayout linearLayout = (LinearLayout)findViewById(R.id.linearLayout);
Bar bar = new Bar(chart.getChart());
chart.getAspect().setView3D(false);
StringList labelsList = new StringList(1);
labelsList.add(0,"40");
bar.getMarks().setVisible(true);
bar.setMarksOnBar(true);
bar.add(0,40,"40");
bar.setLabels(labelsList);
chart.getAxes().getBottom().getCustomLabels().clear();
chart.getAxes().getBottom().getCustomLabels().add(0.0, "40");
linearLayout.addView(chart);
http://www.teechart.net/support/viewtop ... 10&t=13444
Above snippet's result is shown in below image :
Please reply me what to do if I want to show mark when there is only "Single Bar" in Chart ?
Regards,
Dharmesh patel