ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Removing labels & values
Posted by James on Sep-28-2010 06:24
Attachments:
I am working on the small chart using C#. And as you see on the picture, there are many values (SMA, bollinger...) shown on the top of chart. And, they are taking too much space on small chart. Is there anyway that I can hide those values? Also, I would like to hide top label (green color area) and X label. Could you help me with that? Thank you,
2010-09-27_153235.jpg

  Re: Removing labels & values
Posted by Peter Kwan on Sep-28-2010 19:04
Hi James,

The top labels are there because your code adds them. To remove them, please remove the code that adds the labels. (The code that uses addPlotAreaTitle).

For the x-axis labels, you may set them to tranparent, like:

myFinanceChartObj.setXAxisStyle("", 8, Chart.Transparent, 0);

For the legend box in the price chart, you may use Box.setPos to put it outside the chart. For example,

//This is your existing addMainChart line. Please save the returned value in a variable
//so you can call its methods later.
XYChart priceChart = myFinanceChartObj.addMainChart(.......);

priceChart.getLegend().setPos(-9999, -9999);

Hope this can help.

Regards
Peter Kwan

  Re: Removing labels & values
Posted by James on Sep-28-2010 22:20
Thank you! your product is awesome and you are always great support. Have a great day.