Search found 23 matches
- Mon Jun 14, 2021 8:05 pm
- Forum: JFreeChart
- Topic: XYLineAndShapeRenderer Override getItemStroke Which Series is Which Row?
- Replies: 1
- Views: 45980
XYLineAndShapeRenderer Override getItemStroke Which Series is Which Row?
I am writing some code to override getItemStroke and need to know which series being processed on a multi-series line graph. It appears that the row argument is the key but how do I know which series is which row? Is there some other way to identify the series being processed? TIA.
- Mon Jun 14, 2021 2:24 pm
- Forum: JFreeChart
- Topic: Line Dashed
- Replies: 3
- Views: 51994
Re: Line Dashed
Were you able to get this problem resolved? I have a similar issue in that I cannot get a dashed line at all. It seems 'BasicStroke' does not work.
It seems like other than David, no one is participating on this forum.
It seems like other than David, no one is participating on this forum.
- Mon Aug 27, 2018 7:13 pm
- Forum: JFreeChart
- Topic: Restricting ToolTipText to Chart Line Only
- Replies: 3
- Views: 9268
Re: Restricting ToolTipText to Chart Line Only
Thanks for the reply. Would this be "instead of" or "in addition to?"
- Mon Aug 27, 2018 2:13 pm
- Forum: JFreeChart
- Topic: Restricting ToolTipText to Chart Line Only
- Replies: 3
- Views: 9268
Restricting ToolTipText to Chart Line Only
I have the following for displaying a tool tip at specific locations on a Timeline Series chart. class ToolTipChart extends ChartPanel { /** * */ private static final long serialVersionUID = 1L; public ToolTipChart(JFreeChart chart) { super(chart); } @Override public String getToolTipText(MouseEvent...
- Tue Jun 12, 2018 3:43 pm
- Forum: JFreeChart
- Topic: Is a Discontinuous Plot Possible?
- Replies: 1
- Views: 5522
Is a Discontinuous Plot Possible?
I have a real-time time series plot that is working fine. However, there are situations where the input for the y values are "turned off". That is, no data is added to the time series but the time should continue. Later the input would be "turned on" again. Is it possible to add a time data point wi...
- Wed Jun 06, 2018 4:52 pm
- Forum: JFreeChart
- Topic: Font Size Changes When Creating Image
- Replies: 0
- Views: 5555
Font Size Changes When Creating Image
I have a chart that contains markers with labels in 10 pt font. I create an image to be added to an itextpdf document: float sizeX=page.getHeight(); float sizeY=page.getWidth(); float scale=.68f; float marginY=10.f; PdfContentByte cb=writer.getDirectContent(); PdfTemplate tp=cb.createTemplate(sizeX*...
- Wed Jun 06, 2018 2:03 pm
- Forum: JFreeChart
- Topic: Cannot Label Vertical Marker
- Replies: 5
- Views: 16088
Re: Cannot Label Vertical Marker
I think I have it. I'm using getRange() instead.
- Wed Jun 06, 2018 1:46 pm
- Forum: JFreeChart
- Topic: Cannot Label Vertical Marker
- Replies: 5
- Views: 16088
Re: Cannot Label Vertical Marker
I printed out the values and indeed there is apparently a problem with the getMaxY method. It seems to be returning the min value not the max. At the time of the marker execution the y-axis range is ~70-93 and getMaxY returned 71 when it should have returned 93. Interestingly, getMinY returns the sa...
- Tue Jun 05, 2018 7:09 pm
- Forum: JFreeChart
- Topic: Cannot Label Vertical Marker
- Replies: 5
- Views: 16088
Re: Cannot Label Vertical Marker
Thanks for the reply. The chart is updated in real time so the bounds for the time is dynamic and starts with minutes and could go on for hours. Thus the scale will shrink over time. The y-axis is also dynamic and may start at <100 but over time will not exceed 300. Is it not the y-axis that is the ...
- Tue Jun 05, 2018 4:16 pm
- Forum: JFreeChart
- Topic: Cannot Label Vertical Marker
- Replies: 5
- Views: 16088
Cannot Label Vertical Marker
I created a method to add a marker on a time series plot with a label. The marker works fine but I cannot get the label to show up. public void addMarker(String id_,String name_) { Functions.logger("Adding open door marker for "+id_+" "+name_,false); Long tod=new Date().getTime(); ValueMarker marker...
- Fri Dec 08, 2017 2:07 pm
- Forum: JFreeChart
- Topic: Left Scale Label Being Clipped
- Replies: 3
- Views: 8616
Re: Left Scale Label Being Clipped
Thanks, that worked. However, how did you know what parameters to use? I looked through the documentation and it mentioned setting and getting insets in various places but I found nothing on what insets actually are/do.
- Thu Dec 07, 2017 4:42 pm
- Forum: JFreeChart
- Topic: Left Scale Label Being Clipped
- Replies: 3
- Views: 8616
Left Scale Label Being Clipped
I have a working chart but the first (left) tick label is being clipped on the left side.
https://ibb.co/g4wFkG
Perhaps this is a bug since scaling the width does not help. How do I get the chart moved slightly right so the label is not clipped? TIA.
https://ibb.co/g4wFkG
Perhaps this is a bug since scaling the width does not help. How do I get the chart moved slightly right so the label is not clipped? TIA.
- Fri Dec 01, 2017 1:01 pm
- Forum: JFreeChart
- Topic: JFreeChart Image and Itext 7
- Replies: 3
- Views: 9418
Re: JFreeChart Image and Itext 7
Thanks for the reply. I was concerned that if I throw JFreeChart in to the mix they would send me here. I'll give it a try.
- Thu Nov 30, 2017 5:00 pm
- Forum: JFreeChart
- Topic: JFreeChart Image and Itext 7
- Replies: 3
- Views: 9418
JFreeChart Image and Itext 7
I am migrating my app from Itext 5 to Itext 7. However, I can only find examples of images for Itext 5. Can someone tell me how to change this to Itext 7? PdfContentByte cb=writer.getDirectContent(); PdfTemplate tp=cb.createTemplate(sizeX*scale+1,sizeY*scale+1); PdfGraphics2D g2d=new PdfGraphics2D(c...
- Fri Nov 24, 2017 4:50 pm
- Forum: JFreeChart
- Topic: Adding JFreeChart to Itextpdf in Landscape
- Replies: 12
- Views: 25750
Re: Adding JFreeChart to Itextpdf in Landscape
Thanks. I've been looking for one but there doesn't seem to be any.