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

Message ListMessage List     Post MessagePost Message

  How to draw Bar graph with marker/whisker in the form of star(gif)
Posted by Sethu on Aug-16-2013 13:16
Attachments:
Hi,
I am using the paid Java/Windows version of Chart Director. My scenario is that I need to
draw a bar graph with a marker / whisker representing the average score in that category.

I have attached a sample chart herewith.

Can you please educate me on how to draw this graph using ChartDirector?

Also, the scales X axis has ends projected upwards. I would like to know how to get such
an axis as well.

Thanks in Advance.

Sethu
sample_bar_whisker.png

  Re: How to draw Bar graph with marker/whisker in the form of star(gif)
Posted by Peter Kwan on Aug-16-2013 22:58
Hi Sethu,

To add the star symbol, you may use a scatter layer (which allows you to add any symbol
at any position). For example:

BarLayer bLayer = c.addBarLayer(.....);

ScatterLayer sLayer = c.addScatterLayer(null, myAverageValues, "Average",
Chart.StarShape(5), 17, 0xffff00);

To make the ticks point internal to the plot area, you may use a negative tick length. For
example:

c.xAxis().setTickLength(-10);

Hope this can help.

Regards
Peter Kwan

  Re: How to draw Bar graph with marker/whisker in the form of star(gif)
Posted by Sethu on Aug-19-2013 16:37
It worked like a charm, Peter. Thanks!