I see but the result that I'm search for is really to have like 2 pictures (Same size and location) superimpose but being able to see them both by using the alpha.
I've try your solution but it seems that the behavior is the same, the last dataset override the previous dataset ... My goal is to display every dataset like you can superimpose layer, if you have any idea how to do it I will be glad to try it :) But for now I've no idea how to do it and I've tried...
Hello !
I'm trying to superimpose 2 chart with different alpha value but only one of them are visible ...
I'm using a XYBlockRenderer and I was wondering if this type of chart enable me to do that.
Is it possible to display 2 chart with this type of renderer ?
What david was saying is to override this methode like this : @Override public void drawItem(Graphics2D g2, XYItemRendererState state, Rectangle2D dataArea, PlotRenderingInfo info, XYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis, XYDataset dataset, int series, int item, CrosshairState crossha...
So after many try I've manage to fix the generation of the BufferedImage by doing this : public void drawImage(Graphics2D g2, XYItemRendererState state, PlotRenderingInfo info, JFCXYPlot plot, ValueAxis domainAxis, ValueAxis rangeAxis,XYDataset dataset, int series, CrosshairState crosshairState) { p...
If you can show us the part of the code when you add your ChartPanel into your layout, because juste with that I think that you have made a mistake like you add 2 chart at the same place
Well, you can also add elements to the existent Popup by taking the JMenu and then create your popup : String[] list_popup_menu = {"item1","item2","item3","item4","item5"}; JMenu popMenu = yourChartPanel.getPopupMenu(); popMenu.addSeparator(); JMenuItem popupItem; for(String jItemName : list_popup_m...
EDIT 1 : I'm overriding the XYBlockRenderer to improve his performance by using a picture instead of the basic system Hello ! So I've manage to render a BufferedImage instead of render dot by dot BUT the zoom wheel and the rectangle zoom don't work properly : The domain and range axis zoom and unzoo...
If you look at the source code you can that JFreechart assigned the right click to the PopUpMenu : 1585: else if (e.isPopupTrigger()) { 1586: if (this.popup != null) { 1587: displayPopupMenu(e.getX(), e.getY()); 1588: } 1589: } I'm not sure what you want to do ^^ Here you can find the full code : ht...