Search found 23 matches

by daress
Fri Aug 16, 2019 3:15 pm
Forum: JFreeChart
Topic: Show majorAxis at the end of NumberAxis
Replies: 4
Views: 593

Re: Show majorAxis at the end of NumberAxis

Tag! Since you are having a constrained, dynamic XYPlot, I would recommend turning off auto range includes zero (set it to false), and instead manually set the range on the NumberAxis. Since you want to always include zero, create the plot, obtain the range of the axis you want to modify, set the lo...
by daress
Wed Jul 11, 2018 2:15 pm
Forum: JFreeChart
Topic: how to?
Replies: 0
Views: 1092

Re: how to?

For totals, look at this previous post. There exists ExtendedStackBarRenderer and ExtendedStackBarRenderer3D, depending on your preference.
by daress
Mon Jul 09, 2018 4:43 pm
Forum: JFreeChart
Topic: jpeg or other image format file?
Replies: 1
Views: 1058

Re: jpeg or other image format file?

Look at the ChartUtils class - there are many utility methods available for saving the JFreeChart as a PNG or JPEG.
by daress
Wed Jun 27, 2018 3:36 pm
Forum: JFreeChart
Topic: How to really disable mouse zooming ???
Replies: 0
Views: 986

Re: How to really disable mouse zooming ???

Hmm. I am using a CombinedDomainXYPlot and the methods you cite work as expected for me. For your CombinedRangeCategoryPlot, what does isRangeZoomable() and isDomainZoomable() return? Are you perhaps referring to disabling the mouse wheel? If so, try using isMouseWheelEnabled() and setMouseWheelEnab...
by daress
Fri Jun 15, 2018 2:06 pm
Forum: JFreeChart
Topic: I want to ask a question
Replies: 0
Views: 1039

Re: I want to ask a question

Convert the JFreeChart into an InputStream and follow the example at the POI Busy Developer's Guide.
by daress
Wed Jun 13, 2018 2:33 pm
Forum: JFreeChart
Topic: I want to ask a question
Replies: 0
Views: 1190

Re: I want to ask a question

Have you considered using LogAxis or LogarithicAxis for the Y axis? You can set the axis to render integers (example).
by daress
Tue Jun 05, 2018 7:39 pm
Forum: JFreeChart
Topic: Cannot Label Vertical Marker
Replies: 5
Views: 1771

Re: Cannot Label Vertical Marker

I have never done a dynamic plot before, so again I would suggest adding some debugging output with System.out.println() statements within your addMarker() routine to check the X and Y coordinates against the plot's domain and range axes upper and lower bounds. Verify that those values are reasonabl...
by daress
Tue Jun 05, 2018 6:35 pm
Forum: JFreeChart
Topic: Cannot Label Vertical Marker
Replies: 5
Views: 1771

Re: Cannot Label Vertical Marker

I support your guess that you are drawing the XYTextAnnotation off the chart. The constructor for [url=http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/annotations/XYTextAnnotation.html]XYTextAnnotation[url] has the second and thrird arguments as the X and Y location of the text. Not know...
by daress
Mon Jun 04, 2018 7:27 pm
Forum: JFreeChart
Topic: A quick question about draw
Replies: 0
Views: 1149

Re: A quick question about draw

Use JFreeChart for making charts/plots. Use JTable for building tables.

In the JFreeChart demo, look at CrosshairDemo2 for an example - you click on the chart and the coordinate values are placed into a JTable. Java has a tutorial on JTable development you can follow.
by daress
Fri May 25, 2018 7:03 pm
Forum: Orson Charts
Topic: ViewPoint3D units
Replies: 8
Views: 6473

Re: ViewPoint3D units

Thank you David!

I added the constructor to accept the Point3D up to my local copy of Orson charts, and that fixed my issues.

Thank you again for both Orson Charts and JFreeCharts - they have made my work look great!

David
by daress
Fri May 25, 2018 3:44 pm
Forum: JFreeChart
Topic: A quick question about language
Replies: 0
Views: 1075

Re: A quick question about language

Up front, understand that when ChartPanel displays the menu, the text is pulled from a ResourceBundle . The resourse bundle in ChartPanel, localizationResource , is static and allocated when the ChartPanel object is created. If you look at the code (line 393-395) , you will see that a call is made t...
by daress
Thu Aug 31, 2017 4:04 pm
Forum: JFreeChart
Topic: How do I create a XYLineChart with gaps in between squeezed?
Replies: 1
Views: 1280

Re: How do I create a XYLineChart with gaps in between squee

You could create two different XYSeries, with points 1 and 2 in the first, and points 5 and 6 in the second. That would create two different lines with the corresponding gap between them. They would be different colors (and two different entries in the legend), but you can override the color of each...
by daress
Thu Feb 02, 2017 11:13 pm
Forum: JFreeChart
Topic: Add button to Chart Properties Dialog
Replies: 2
Views: 1519

Re: Add button to Chart Properties Dialog

The chart properties dialog box you are referring to, I believe, is shown from the ChartPanel.java's public void doEditChartProperties() method (I am looking at JFreeChart 1.0.19 source). In looking at that method, the OK and CANCEL buttons you are seeing is from the standard JOptionPane.showConfirm...
by daress
Thu Nov 10, 2016 3:51 pm
Forum: Orson Charts
Topic: ViewPoint3D units
Replies: 8
Views: 6473

Re: ViewPoint3D units

OK, a demo of the problem I am having. This demo was done with Orson Charts 1.5. I took the ScatterPot3DDemo2 class and duplicated it as ScatterPlot3Demo4. I then changed the JCheckBox to a JButton and rewrote the actionPerformed() method. Everytime the button is clicked, the current viewport data i...
by daress
Tue Oct 25, 2016 2:35 pm
Forum: Orson Charts
Topic: Feature Request - copy on pop-up menu
Replies: 1
Views: 3061

Feature Request - copy on pop-up menu

I see that Orson Charts has a pop-up menu like JFreeChart does, but there is a menu item that I have found very useful in JFreeChart (ChartPanel.doCopy()) that is missing in the Orson Charts implementation - a feature to copy a buffered image of the chart to the system clipboard. While I am looking ...