|
From: Nathaniel G. A. <nat...@ya...> - 2004-05-26 12:55:38
|
i checked in some changes for this under the krysalis-jcharts module. I still need to do some
testing for user defined scales that do not show zero on the y-axis.
--- Travis Reeder <tra...@ec...> wrote:
> Probably easiest if you do it, but I looked and I think it's here in
> verticalPlot():
>
> if( rectangle.height != 0 )
> {
> g2d.fill( rectangle );
>
> if( barChartProperties.getShowOutlinesFlag() )
> {
> barChartProperties.getBarOutlineStroke().draw(
> g2d, rectangle );
> g2d.setPaint( iAxisChartDataSet.getPaint( 0 ) );
> }
>
> //---if we are generating an ImageMap, store the
> image coordinates
> if( axisChart.getGenerateImageMapFlag() )
> {
> String label;
> if( axisChart.getXAxis().getAxisLabelsGroup() !=
> null )
> {
> label =
> axisChart.getXAxis().getAxisLabelsGroup().getTextTag( i ).getText();
> }
> else
> {
> label = null;
> }
>
> * axisChart.getImageMap().addImageMapArea( new
> RectMapArea( rectangle,
>
> iAxisChartDataSet.getValue( 0, i ),
>
> label,
>
> iAxisChartDataSet.getLegendLabel( 0 ) ) );*
> }
> }
>
> Should move that addImageMapArea out of the: if( rectangle.height != 0
> ) { block so it adds regardless.
>
> Travis
>
> Nathaniel G. Auvil wrote:
>
> >oh i see...that is not good. Nothing gets added to that List when the value is zero. I will try
> to
> >look at this tonight. The only file which needs a fix for you is BarChart.java if you want to
> >look at it before I can do it.
> >
> >
> >
> >--- Travis Reeder <tra...@ec...> wrote:
> >
> >
> >>Well nothing, it's not really that it needs to be clicked on, but the
> >>iterator no longer matches the graph. It would be nice to have it at
> >>least return something and you could check the imageMapArea.getValue or
> >>something to know whether to output that portion of the map html or some
> >>way at least to know that it skipped a column.
> >>ex:
> >>
> >>ImageMapArea imageMapArea= (ImageMapArea) iterator.next();
> >> if(imageMapArea.getValue() > 0){
> >> ... do the rest here
> >> imageMapArea.toHTML()....
> >> }
> >>
> >>
> >>Maybe your idea of clicking on the x-axis is a perfect idea, then you don't even have to check
> >>and it would be backwards compatible.
> >>
> >>Travis
> >>
> >>
> >>Nathaniel G. Auvil wrote:
> >>
> >>
> >>
> >>>what would you click on if there is nothing drawn? The axis?
> >>>
> >>>
> >>>--- Travis Reeder <tra...@ec...> wrote:
> >>>
> >>>
> >>>
> >>>
> >>>>If a bar is 0 value, then it seems like no ImageMapArea is is returned
> >>>>for that bar. This is problematic when the bars link to dynamic values
> >>>>for example:
> >>>>
> >>>>ImageMapArea imageMapArea= (ImageMapArea) iterator.next();
> >>>> html.append( "href=\"processList.jsf?status=" );
> >>>> html.append( matchingStatusCodes[mapCount] );
> >>>> html.append( "\"" );
> >>>>
> >>>>
> >>>>Any ideas to get around that?
> >>>>
> >>>>Travis
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>>
> >>>
> >>>
> >>>
> >>>__________________________________
> >>>Do you Yahoo!?
> >>>Friends. Fun. Try the all-new Yahoo! Messenger.
> >>>http://messenger.yahoo.com/
> >>>
> >>>
> >>>-------------------------------------------------------
> >>>This SF.Net email is sponsored by: Oracle 10g
> >>>Get certified on the hottest thing ever to hit the market... Oracle 10g.
> >>>Take an Oracle 10g class now, and we'll give you the exam FREE.
> >>>http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> >>>_______________________________________________
> >>>jCharts-users mailing list
> >>>jCh...@li...
> >>>https://lists.sourceforge.net/lists/listinfo/jcharts-users
> >>>
> >>>.
> >>>
> >>>
> >>>
> >>>
> >>>
> >
> >
> >
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >Friends. Fun. Try the all-new Yahoo! Messenger.
> >http://messenger.yahoo.com/
> >
> >
> >-------------------------------------------------------
> >This SF.Net email is sponsored by: Oracle 10g
> >Get certified on the hottest thing ever to hit the market... Oracle 10g.
> >Take an Oracle 10g class now, and we'll give you the exam FREE.
> >http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
> >_______________________________________________
> >jCharts-users mailing list
> >jCh...@li...
> >https://lists.sourceforge.net/lists/listinfo/jcharts-users
> >
> >.
> >
> >
> >
>
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
|