|
graphic |
Posted by lari3 on May-05-2013 17:51 |
|
i'm trying to create application "traceroute",
my problem is in the final graphic
So please can you help me
|
Re: graphic |
Posted by Peter Kwan on May-07-2013 01:42 |
|
Hi lari3,
You may start with the Polar Area Chart sample code, which is a polar chart using labels on the spokes. The original sample code is an area chart, but you can change it to a line chart by changing addAreaLayer to addLineLayer.
After you get a basic working chart, you can modify the look and feel to match you needs. For example, you may change the color and size of the chart, use PolarLayer.setDataSymbol to add data point symbols (see the Polar Line Chart sample code on how to use setDataSymbol), use CDML to add icons to the labels (you may look up CDML from the ChartDirector documentation index), etc..
Hope this can help.
Regards
Peter Kwan |
Re: graphic |
Posted by lari3 on May-07-2013 06:08 |
|
think you Peter ,
but can you tell me how to insert icon in graphic |
Re: graphic |
Posted by Peter Kwan on May-07-2013 17:33 |
|
Hi lari3,
If the ICON is part of a text or label, you may use CDML to insert the icon in the text. For example:
<*img=/path/to/myicon.png*>AAA BBB CCC
You may use a line break character ("\\n" in most of the programming language, and vbLF in VB, or <*br*>) if you want the icon and the text to be in two lines:
<*img=/path/to/myicon.png*><*br*>AAA BBB CCC
You may refer to the "Icon Pie Chart (2)" sample code for some examples. In that sample code, you can see many icons as part of the labels.
Hope this can help.
Regards
Peter Kwan |
Re: graphic |
Posted by lari3 on May-07-2013 22:40 |
|
think you Peter,
i will trying that |
|