PDA

View Full Version : Chart action



modsaid
04-11-2006, 03:49 AM
i'm having hard time trying to bring a chart into life with xaction files..

http://forums.pentaho.org/showthread.php?t=26143


i created xaction file with a SQLLookuprule to retreive data.. trying to use this data with ChartComponent but with no success..

i tried matching the ChartComponent example in "creating pentaho solution" file.. but with not much success

the pentaho demo does not contain a chart example with xaction file.. it uses a servlet to create a chart in the demo...

is there any working xaction chart example available...
i'll really much appreciate is if someone helped me with that

thanks in advance

mbatchelor
04-11-2006, 06:08 AM
Please see the sample under reporting called JFree_ChartComponent.xaction. I think that's what you're looking for.

modsaid
04-12-2006, 06:12 AM
thanks marc

i was trying with the older version pentaho_demo-1.1.1.0.zip that did not contain this chart xaction example.

i switched to pentaho_demo-1.1.3.206.zip and i was able to edit the example to produce my own BarChart

i still had something missing
the chart i wanted simply represents values for domain {A,B,C,....}


6 |
5 |
4 |
3 |
2 |
1 |
________________________
A B C D E F G H I J K L

i couldn't find a way to make the {A, B,C,...} appear on the x-axis

where can i do that...

attached is the generated chart i was able to reach

my query was
select Value from blabla

such that each value corresponds to a month http://www.pentaho.org/components/com_simpleboard/uploaded/images/tmp_chart_33721.png

Post edited by: modsaid, at: 04/12/2006 11:08

modsaid
04-12-2006, 07:19 AM
when i select the month and the monthValue
i get the right {A,B,C,D,...}
when corresponds to the months numbers {1,2,....,11,12}

but it shows two bars.. one for the month number and one for the OrderValue!!!

attached

how can i cause this to happen when i select OrderValue only?!! http://www.pentaho.org/components/com_simpleboard/uploaded/images/tmp_chart_33730.png

Post edited by: modsaid, at: 04/12/2006 11:20

modsaid
04-12-2006, 07:24 AM
this will show the red bar of the month number better http://www.pentaho.org/components/com_simpleboard/uploaded/images/tmp_chart_33733.png