hello everyone
I have ever worked with JFreeChart and Richfaces separatelly I just discovered primfaces and is very promising I think;
but I wonder is what I can see a combinedDomainCategry chart what I already used on JFreeChart?
thank you
CombinedDomainCategory in charts
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Welcome to the forums, what is combinedDomainCategry exactly, can you provide a screenshot of the chart?
hi;
thank you for the fast replay;
I don't know how can I attach à screenshot here but I upload the screenshot in this link:
http://www.easy-share.com/1905296504/Co ... ryplot.png
thnk you
thank you for the fast replay;
I don't know how can I attach à screenshot here but I upload the screenshot in this link:
http://www.easy-share.com/1905296504/Co ... ryplot.png
thnk you
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
No out of the box solution but I think you can implement this by using two primefaces charts. One for p:lineChart and other one is for p:columnChart.
Place them like this;
Place them like this;
Code: Select all
<p:lineChart />
<p:columnChart />
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Thanks, let us know
Hi;
great I can do it as you said;
I have just two problems:
1) how can I do to display the names of the graph within the graph? (I can't do that as explained in the skinning chapter of the primefaces_guide)
2)what I can do to control the window size of the graph displayed
thank you so much
great I can do it as you said;
I have just two problems:
1) how can I do to display the names of the graph within the graph? (I can't do that as explained in the skinning chapter of the primefaces_guide)
2)what I can do to control the window size of the graph displayed
thank you so much
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Hi Jinio,
1) Do you mean the legends? For that please see the showcase demo as well;
LineChart: http://www.rehberharitam.com/prime-show ... eChart.jsf
ColumnChart: http://www.rehberharitam.com/prime-show ... nChart.jsf
Basically you need to provide the style as a javascript object since charts are flash based components.
2) The charts are displayed withing an html div element and the styleClass attribute applies to that div, it's the best place to control width and height;
You can use 1 and 2 in a chart like this:
Hope this helps, also reference documentation and online demo can help to see how things work.
1) Do you mean the legends? For that please see the showcase demo as well;
LineChart: http://www.rehberharitam.com/prime-show ... eChart.jsf
ColumnChart: http://www.rehberharitam.com/prime-show ... nChart.jsf
Basically you need to provide the style as a javascript object since charts are flash based components.
Code: Select all
<script type="text/javascript">
var chartStyle = {
legend: {
display:"right"
}
};
</script>
Code: Select all
<style type="text/css">
.column {
width:600px;
height:400px;
}
</style>
Code: Select all
<p:columnChart value="#{chartBean.births}" var="birth" xfield="#{birth.year}" styleClass="column" style="chartStyle">
<p:chartSeries label="Boys" value=" # {birth.boys}" />
<p:chartSeries label="Girls" value=" # {birth.girls}" />
</p:columnChart>
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
Jinio, see this topic for the axis range requirement you have: http://primefaces.prime.com.tr/forum/vi ... yaxis#p373
-
- Information
-
Who is online
Users browsing this forum: No registered users and 49 guests