1. how to change the width of the stroke jfree.orghow to change the width of the stroke by jiazhengzhou Sat Jun 04, 2005 3:49 am JFreeChart chart = ChartFactory.createBarChart( null, // "", // unit, // dataset, // PlotOrientation.VERTICAL, // true, // (false) true, // false // URL ); CategoryPlot plot = (CategoryPlot)chart.getPlot(); plot.setForegroundAlpha(0.9999999999999999999999999999999999999999999999999999999999999999999999999f); StandardLegend legend = (StandardLegend) chart.getLegend(); legend.setDisplaySeriesShapes(true); plot.setBackgroundAlpha(0.000000000000000000000000000000001f); plot.mapSecondaryDatasetToRangeAxis(0, new Integer(100)); ... |
2. CategoryMarker Width Problem jfree.orgI'm trying to use CategoryMarker for my category graph. It is marking the domain axis correctly. However, the line is extremely thick. I can change the color of the line, but am not able to change the width of the line. I need a very skinny marker line. I've tried different Strokes of varying width, but am not seeing any changes. ... |
3. Trying to set Category Width jfree.orgHello, I've been searching the forums and found some tidbits here and there.. but still haven't been able to figure out how best to expand on the category label width. I'm angling it at 90 degrees and want to make it wider.. I had thought setMaximumCategoryLabelwidthRatio would do..but doesn't seem to have an effect : domainAxis.setLowerMargin(0.05); domainAxis.setCategoryMargin(0.25); domainAxis.setUpperMargin(0.05); domainAxis.setCategoryLabelPositions(CategoryLabelPositions.DOWN_90); domainAxis.setMaximumCategoryLabelWidthRatio(10.0f); I ... |
4. Maximum width of AxisLabel jfree.org |
5. width of thermometer chart jfree.orghi, I'm trying to use a thermometer chart, but it seems to have an enormous amount of white space either side of it. When I try to make the panel in which it's embedded narrower the chart just seems to get squashed and distorted horizontally. When scaled vertically it seems to behave differently and intelligently redraws it's axes, but horizontal scaling ... |
6. how to set width help help help jfree.org |
7. how to control grid width jfree.orghi.. i would like to know a way to control grid width... I have two data sets like... first:(10,10)(20,20)(30,30)(40,40)(50,50) second:(10,10)(13,13)(15,15)(17,17)(20,20) (23,23)(25,25)(27,27)(30,30).....so on now when plot it i dont want tick marks for 13,15,17...i should have tick marks and grid line only for 10,20,30,40 on the x axis... is this possible? regards Himateja |
8. How to determine ideal chart width in Web App jfree.org |
9. Candles show up with a too small width when using months jfree.orgHi all, does anyone have an example of how to build a Candlestick chart that uses Month or Year steps on its domain axis ? When i apply the demo based on Days (http://www.koders.com/java/fid6EEE6EF42FBB7AC160ED20912D4DC093E351B4C8.aspx) to Month items then the candles have a too small width (almost invisible small). Until now i have only found examples that base on days for this ... |
10. Controling width of tool tip jfree.org |
11. chart maximum draw width jfree.orgHi, I have a problem when drawing a category plot which has many number of categories, which means the chart will be pretty wide. I use the setMaximumDrawWidth to set a pretty high value for maximum drawing width. But when this number is beyond certain value, say in my case, 10000, the chart is not drawing correctly. It is looks crashed. ... |
12. Width of TextTitles jfree.orgHi, I am trying to print up to 4 subtitles containing text in 1 row (like columns of a table). Since flow- and gridlayout do not seem to work (throwing exceptions), I use a borderarrangement and create a component title containing 2 BlockContainers, each containing up to 2 TextTitles. The TextTitles have a border. Unfortunately, I did not find a way ... |
13. candle width with SetRange(..) jfree.org |
14. Variable width box charts like XYBarChartDemo4 ? jfree.orgI would like an chart similar to the demo "BarCharts:XYPlot:XYBarChartDemo4" with bar widths determined by the x-values in the dataset. The source code that came with the Developers Guide (XYBarChartDemo4.java) produces charts with fixed bar widths (in this case 0.9). A snip from the portion of the code that generates the IntervalXYDataset follows: Code: Select all * ... |
15. maximum width jfree.org |
16. width of the legend jfree.orgHi, How can I set the width of the legend? I want to set for the legend a fixed width or at least a procentual width. But I cannot accomplish this. I want this because I create a legend for every dataset and I set the background color to white (different to the color of the chart). But all these legends ... |
17. Box and Whiskers Width of boxes jfree.orgIs there a way to modify the Box and Whisker plot display ie the median circle to be scaled not to the width but by some other factor. The Problem i'm having is the data which i input causes the chart to have a large width however a small height. This causes the problem that the median circle does not look ... |
18. Fixed character width font for legend jfree.org |
19. Line width (Stroke) - what units? jfree.org |
20. Change width and gap in StatisticalBarChart jfree.org |
21. Legend width jfree.org |
22. chart width with right legend jfree.orgHi, I need to draw an XYScatterPlot with squarre width (400x400 px ) and add a legend on the rigth. Something like : http gribo.free.fr/images/chart1.png But the legende labels length might be very long, and i would like the graph to be automatically extended but keeping my graph 400x400 What I get is : http gribo.free.fr/images/chart2.png Does somebody knows how : ... |
23. How to reduce the width of thermometer chart jfree.orgprivate JFreeChart generateThermometerChart(double valueSet, double min, double max, String systemMetrics) { String meterValue = UtilityFunctions.getFormattedDoubleWithUserPreference(valueSet); ValueDataset valuedataset = new DefaultValueDataset(Double.parseDouble(meterValue)); ThermometerPlot thermometerplot = new ThermometerPlot(valuedataset); thermometerplot.setRange(0,max); thermometerplot.setUnits(ThermometerPlot.UNITS_NONE); thermometerplot.setMercuryPaint(Color.RED); //thermometerplot.setThermometerPaint(Color.RED); //thermometerplot.setValuePaint(Color.BLACK); //thermometerplot.setValueLocation(1); thermometerplot.setOutlinePaint(null); JFreeChart jfreechart = new JFreeChart("", JFreeChart.DEFAULT_TITLE_FONT, thermometerplot, false); jfreechart.setBackgroundPaint(new javax.swing.plaf.ColorUIResource(222, 237, 255)); jfreechart.setBorderVisible(false); thermometerplot.setInsets(new RectangleInsets(UnitType.ABSOLUTE, 0, 0, 0, 0)); thermometerplot.setThermometerStroke(new BasicStroke(2.0F)); thermometerplot.setThermometerPaint(Color.PINK); thermometerplot.setBackgroundPaint(new Color(222, 237, 255)); return jfreechart; } ... |
24. How to set width of BoxAndWhisker item? jfree.org |
25. Legend border width is too wide jfree.orgHi there, i am facing a problem with my charts legend in an TimeSeriesChart. Having a lot of TimeSeries in the chart, the legend ist automatically extended to a multiple line legend. If this happens, the legend border always is extended to the maximum width of the plot. The consequense is a white gap between the end of the legend items ... |
26. how to change the width of a category marker? jfree.orgHi I tried to change the width of a category marker by doing this : cmMarker = new CategoryMarker( cCurrentKey , aColor, new BasicStroke( 10 ), aColor, new BasicStroke( 10 ), 1.0f ); but it has no effect. I tried to use setSeriesOutlineStroke and setSeriesStroke on the LineAndShapeRenderer and it didn't work. Is there another way of changing this? I precise ... |
27. Calculate total width of labels jfree.orgDo you mean the labels along the CategoryAxis, or do you have item labels on the bars? In either case, there isn't an easy way (as in API method to call) to know the width of the labels before they are drawn (partly because the data area of the chart isn't known in advance, it needs all the titles, subtitles, legend ... |
28. Increasing Stroke width in XYIntervalSeries jfree.orgHi, I was trying to increase the stroke width of lines. I am using XYIntervalSeries. renderer.setSeriesStroke( i, new BasicStroke( 1.0f, BasicStroke.CAP_ROUND, BasicStroke.JOIN_ROUND, 1.0f, new float[] {20.0f, 6.0f}, 0.0f)); This only increases the size of legends inside the series legend box but not the individual data lines ( box and whiskers plot) inside the plot. Can you please suggest me how this ... |
29. Grid Line Widths jfree.orgI ran into the following problem while working on a TimeSeries chart, not sure if it's a bug or I am doing something incorrectly. My chart is supposed to have vertical and horizontal grid lines of varying widths for example. I set the widths in the following code: XYPlot plot = (XYPlot) chart.getPlot(); plot.setDomainGridlineStroke(new BasicStroke(0.4f)); plot.setRangeGridlineStroke(new BasicStroke(0.01f)); plot.setRangeGridlinePaint(Color.GRAY); plot.setDomainGridlinePaint(Color.GRAY); The domain ... |
30. RESOLVED: Annotation width based on two Timestamps in Tim... jfree.orgHi, I am quite new to JFreeChart. I have been looking for a solution, but was not successfull. I might be blind though, so hopefully you will forgive me if I am the x-th person asking: I am using a TimeSeriesChart with millisecond values on the DomainAxis and double values on the RangeAxis. I already created my dataset containing all the ... |
31. how do i get Candle stick width jfree.orgin candlestick chart how do i find out width of candle ? if its not set then getCandleWidth returns -1 and chart finds width by itself. how do i find out stick width? I am trying to display TextAnnotation next to candle, but can not determine X axis value(which is DateAxis). so it shows on middle of candle. i want text ... |
32. Width of StandardPieSectionLabelGenerator jfree.org |
33. I just need a little more width jfree.orgA CategoryAxis will only use a fraction of the available category width for the category labels. Otherwise the labels would start to overlap. The fraction can be defined in the CategoryAxis and defaults to 0. In that case, i.e. if you have not set tha value to > 0, the category axis will get the fraction form the category label position ... |
35. How to increase the width of the Chart? jfree.orgHi All, I have defined a chart width as like below Code: Select all try { OutputStream outStream = response.getOutputStream(); response.setContentType("image/png"); ... |