Hi Swen, I had a quick look a this issue and looks like the "_locale" is not being sent to the client. Currently the chart is being rendered on the client side and it is using the locale to format numbers ('.' vs ','). The provided sample works since the editor binding(with table) is somehow forcing the "_locale" to be sent down to the client.
The pie chart is displaying currently since it is not displaying any labels (it only displays the labels on mouseover). In future we need to label the pie and the funnel charts as well. I will investigate a fix. Regards, Venkata On 3/29/07, Sven Wagner <[EMAIL PROTECTED]> wrote:
Hi Venkata, thanks for the hint. Unfortunately it doesn't solve my problem. I added the functions to myChartModel Class but the problem remains the same. Am I using the tag right? This works fine: <tr:chart id="myChart" value="#{chart.value}" type="pie"></tr:chart> This shows a blank space though the border of the box is visible. <tr:chart id="myChart" value="#{chart.value}" type="verticalBar"></tr:chart> Would be cool if I could make it work. It's an impressing component. Sven 2007/3/29, venkata guddanti <[EMAIL PROTECTED]>: > > Hi Sven, > > There is a bug in the chart rendering where it is expecting a maxYValue > and > minYValue. The following will fix chart: > > @Override > public Double getMaxYValue() > { > return 200000.0; > } > > @Override > public Double getMinYValue() > { > return 0.0; > } > > Per documentation you do not need to specify these. The min value should > default to 0.0 and max value should be 120% of the max of the yValues. Can > you please log a JIRA issue for this? I will submit a patch. > > --Venkata > > On 3/28/07, Sven Wagner <[EMAIL PROTECTED]> wrote: > > > > Hello, > > > > I'm trying to use the tr:chart component. The demo works fine as it is, > > but > > when I try using my own classes with the demo data, it only shows pie > > charts > > (and funnel charts). for all other types I get an empty space. I have > > tried > > simply using the demo as it is and not rendering the the table which has > > the > > same effect. Can anyone help? > > > > Thanks, > > > > Sven > > > > P.S. Sorry if I spam you with this problem, I tried sending it twice > > already. > > > > > > These are my classes: > > > > public class MyChartModel extends ChartModel{ > > > > @Override > > public List<String> getGroupLabels() { > > // TODO Auto-generated method stub > > return Arrays.asList(new String[]{"June", "July", "August", > > "September","October"}); > > } > > > > @Override > > public List<String> getSeriesLabels() { > > // TODO Auto-generated method stub > > return Arrays.asList(new String[]{"Previous", "Target", > > "Actual"}); > > } > > > > @Override > > public List<List<Double>> getYValues() { > > ArrayList<List<Double>> _chartYValues = new > > ArrayList<List<Double>>(); > > _chartYValues.add(Arrays.asList(new Double[]{135235.0, > 155535.0, > > 141725.0})); > > _chartYValues.add( Arrays.asList(new Double[]{106765., > 131725., > > 127868.})); > > _chartYValues.add(Arrays.asList(new Double[]{108456., 119326., > > 139326.})); > > _chartYValues.add(Arrays.asList(new Double[]{136765., 147265., > > 184349.})); > > _chartYValues.add(Arrays.asList(new Double[]{107868., 113968., > > 174349.})); > > return _chartYValues; > > } > > > > } > > > > ---------------- > > public class ChartBean { > > MyChartModel value=new MyChartModel(); > > > > public ChartModel getValue(){ > > return value; > > } > > } > > >