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 would like to have a result like this :
Search found 13 matches
- Fri Jun 30, 2017 1:04 pm
- Forum: JFreeChart
- Topic: Superimpose 2 block chart
- Replies: 7
- Views: 5602
- Fri Jun 30, 2017 9:01 am
- Forum: JFreeChart
- Topic: Superimpose 2 block chart
- Replies: 7
- Views: 5602
Re: Superimpose 2 block chart
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...
- Thu Jun 29, 2017 12:29 pm
- Forum: JFreeChart
- Topic: Superimpose 2 block chart
- Replies: 7
- Views: 5602
Re: Superimpose 2 block chart
But that will set the alpha for every dataset, doesn't it ? Or I have to create 1 plot for each dataset ?
NB : I've already to change the transparency by having a paintScale (custom - with transparency) for each renderer
NB : I've already to change the transparency by having a paintScale (custom - with transparency) for each renderer
- Thu Jun 29, 2017 8:55 am
- Forum: JFreeChart
- Topic: Superimpose 2 block chart
- Replies: 7
- Views: 5602
Superimpose 2 block chart
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 ?
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 ?
- Wed May 31, 2017 3:22 pm
- Forum: JFreeChart
- Topic: Idea to distinguish items in XYBlockRenderer
- Replies: 6
- Views: 5923
Re: Idea to distinguish items in XYBlockRenderer
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...
- Tue May 30, 2017 4:27 pm
- Forum: JFreeChart
- Topic: Unable to keep the JFreeChart Zoom system
- Replies: 1
- Views: 2622
Re: Unable to keep the JFreeChart Zoom system
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...
- Tue May 30, 2017 4:18 pm
- Forum: JFreeChart
- Topic: Symbol Axis rotation
- Replies: 4
- Views: 4905
Re: Symbol Axis rotation
My bad didn't see that was for a tick label
- Mon May 29, 2017 4:39 pm
- Forum: JFreeChart
- Topic: Symbol Axis rotation
- Replies: 4
- Views: 4905
Re: Symbol Axis rotation
This isn't totally working I think (It's more that I didn't totally understand how it work) but with a ValueAxis you can do this :
Code: Select all
yourValueAxis.setLabelAngle(90);
- Tue May 23, 2017 3:51 pm
- Forum: JFreeChart
- Topic: Setting custom domain axis tick labels
- Replies: 1
- Views: 6672
Re: Setting custom domain axis tick labels
It's only for a Bar plot ? if that the case the name of the column should be enough ?
Code: Select all
DefaultCategoryDataset dataset = new DefaultCategoryDataset();
dataset.addValue(newData,strRow,strCol);
- Tue May 23, 2017 3:45 pm
- Forum: JFreeChart
- Topic: Chart does not show data after adding a new panel
- Replies: 4
- Views: 4084
Re: Chart does not show data after adding a new panel
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
- Fri May 19, 2017 2:48 pm
- Forum: JFreeChart
- Topic: ChartEntity on Right Mouse Release (Button 3)
- Replies: 5
- Views: 5204
Re: ChartEntity on Right Mouse Release (Button 3)
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...
- Fri May 19, 2017 10:04 am
- Forum: JFreeChart
- Topic: Unable to keep the JFreeChart Zoom system
- Replies: 1
- Views: 2622
Unable to keep the JFreeChart Zoom system
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...
- Fri May 19, 2017 9:55 am
- Forum: JFreeChart
- Topic: ChartEntity on Right Mouse Release (Button 3)
- Replies: 5
- Views: 5204
Re: ChartEntity on Right Mouse Release (Button 3)
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...