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

Message ListMessage List     Post MessagePost Message

  How to......off it...
Posted by JJJ on Aug-24-2011 17:03
Attachments:
hi~all

i want to........


Thank
未命名 - 3.jpg

  Re: How to......off it...
Posted by Peter Kwan on Aug-25-2011 02:00
Hi JJJ,

You may modify the FinanceChart source code (included in the ChartDirector download) to modify the labels. The key reasons we open source the FinanceChart is to allow people to modify the look and feel and to localize the labels. Many of our customers modify FinanceChart to show the labels in other languages (eg. like in Japanese) or in other format.

The exact location of the FinanceChart source code and how to use it depends on your programming language edition of ChartDirector. You may refer to the documentation on "FinanceChart" for details. (You may look up for "FinanceChart" in the documentation index.)

(***Note***: All editions of ChartDirector includes the FinanceChart source code in the download, except for "ChartDirector for ColdFusion".  For "ChartDirector for ColdFusion", the FinanceChart source code is written in Java, and is included in "ChartDirector for JSP/Java".)

Hope this can help.

Regards
Peter Kwan

  Re: How to......off it...
Posted by JJJ on Aug-25-2011 16:34
Hi Peter:

I am using ChartDirector for .NET  ver 5

i need to know how to do...

Thanks a lot for your help

  Re: How to......off it...
Posted by JJJ on Aug-25-2011 17:31
i try again


c.addVolIndicator(75, 0x99ff99, 0xff9999, 0x808080).getLegend().setText("my:{value}");

but

value is NULL

  Re: How to......off it...
Posted by Peter Kwan on Aug-26-2011 02:45
Hi JJJ,

It is suggested you use a custom version of FinanceChart to modify the legend labels. In brief, the steps are:

(a) Include the following file "[ChartDirector]\\NetFinanceChart\\FinanceChart.cs" in your project.

(b) In your code, instead of using "new FinanceChart(....)", please use "new Custom.FinanceChart(....)".

(c) Modify the FinanceChart.cs to modify the labels. For example, for volume bars, you may search for the text "Vol" (with quotes - should be found in line 1092), and replace it with "my text".


The LegendBox.setText method can only work if there is one legend entry. If you would like to use this method, please simply use the legend entry you want in setText. For example:

c.addVolIndicator(75, 0x99ff99, 0xff9999, 0x808080).getLegend().setText("my:" + volData[volData.Length - 1]);


Hope this can help.

Regards
Peter Kwan

  Re: How to......off it...
Posted by JJJ on Aug-26-2011 10:41
cool,Thanks for all the help.
^.^