X-axis and Y-axis Label for Column charts

UI Components for JSF
Post Reply
Murali
Posts: 38
Joined: 11 May 2009, 16:17

11 Aug 2009, 14:32

hi ,
I'm using prime column chart in our application, i have 2 question.
1. Is there any attribute to show the label of x-axis and y axis.
2. In the Show case (Column chart) you have specified, Boys and girls in the rectangular box on the right side of the chart (with the chart color). how can i add this ?

Thanks

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

12 Aug 2009, 01:30

Based on the example at http://97.107.138.40:8080/prime-showcas ... nChart.jsf.

ChartStyle used in that example is;

Code: Select all

<script type="text/javascript">
var chartStyle = {
   padding: 20,
    legend: {display:"right",spacing:10}
   };
</script>
So basically you need to style your chart, reference documentation has more information regarding Chart Skinning.

By label you mean, like displaying text "year" for x-axis?

Murali
Posts: 38
Joined: 11 May 2009, 16:17

12 Aug 2009, 05:28

Thanks for your response.
Yes. Year for x-axis and Birth for Y axis.

GiriGG
Posts: 12
Joined: 16 Jun 2009, 01:25

20 Aug 2009, 22:58

Hi,

I have a similar requirement to display label/text like Year for x-axis and Birth for Y axis. Please let us know how to do that.

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

20 Aug 2009, 23:31

Axis title is not supported at the moment but due to the high request, we'll add this support very soon. I'll update this post tomorrow after adding the feature and creating a snapshot build of 0.9.2. Stay tuned! ;)

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

21 Aug 2009, 20:18

Done, with two new attribute titleX and titleY, label for an axis can be customized. You need a snapshot build for this which is available at;

http://repository.prime.com.tr/org/prim ... -SNAPSHOT/

Due to a bug in yui chart engine, stackedColumn and stackedBar charts are not support these options.

Murali
Posts: 38
Joined: 11 May 2009, 16:17

24 Aug 2009, 13:08

I have tested it in column chart and its working fine :).
thank you.

evandro.dutra
Posts: 4
Joined: 30 Oct 2009, 22:16

03 Nov 2009, 19:40

How can i show TitleY and TitleX on my columnChart?

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

04 Nov 2009, 11:20

Please read the reference documentation.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Google [Bot] and 45 guests