Search found 8 matches

by skyhook
Fri Apr 03, 2015 10:03 pm
Forum: JFreeChart
Topic: Swing menu internationalization
Replies: 5
Views: 5127

Re: Swing menu internationalization

For example i want to customize swing menu, when you right click on graph. There is menu with:

Properties
Copy
Save as...
Print
Zoom in
Zoom out
Auto range

and i want to replace these text with text from my Bundle file. I want internationalize these texts.

M.
by skyhook
Tue Mar 31, 2015 9:49 pm
Forum: JFreeChart
Topic: Swing menu internationalization
Replies: 5
Views: 5127

Re: Swing menu internationalization

I am creating desktop application with Netbeans platforms framework so i am using Netbeans. I have Bundle.properties files for other text and other languages. But i cannot find any example how easy customize text from jfreechart components.

M.
by skyhook
Tue Mar 31, 2015 7:06 am
Forum: JFreeChart
Topic: Swing menu internationalization
Replies: 5
Views: 5127

Swing menu internationalization

Hi,

can someone post to me some peace of code, example, where to place files, resources in another language to internationalize swing menus?

Thanks.
by skyhook
Wed Mar 04, 2015 1:44 pm
Forum: JFreeChart
Topic: Display all bars with equal width in x axis using XYBarchart
Replies: 1
Views: 2725

Re: Display all bars with equal width in x axis using XYBarc

Hi,

Are you using XYBarRenderer class?

M.
by skyhook
Wed Mar 04, 2015 1:40 pm
Forum: JFreeChart
Topic: no want the X-axis values that are automatically shown
Replies: 3
Views: 4166

Re: no want the X-axis values that are automatically shown

Hi,

You can customize your axis using SymbolAxis, NumberAxis, ValueAxis class or use something like

DateAxis y = new DateAxis("Y");
y.setTickUnit(new DateTickUnit(DateTickUnitType.DAY, 7, new SimpleDateFormat("MM-dd 'W'w."))); (only example)

and then method "setRange" may be.
by skyhook
Wed Mar 04, 2015 1:19 pm
Forum: JFreeChart
Topic: GanttChart - Swap between schedules?
Replies: 1
Views: 3317

Re: GanttChart - Swap between schedules?

Hi,

Question 1

- i am using chart.getCategoryPlot().clearRangeMarkers();

Question 2

- i am using chart.getCategoryPlot().getRangeAxis().setRange(start, end)

M.
by skyhook
Wed Mar 04, 2015 12:54 pm
Forum: JFreeChart
Topic: Drawing timing intervals on a time axis
Replies: 1
Views: 3580

Re: Drawing timing intervals on a time axis

It looks like gant chart. You can use something like private TaskSeriesCollection dataSeries = new TaskSeriesCollection(); JFreeChart defaultChart = ChartFactory.createGanttChart( "", // chart title "", // domain axis label "", // range axis label dataSeries, // data true, // include legend true, //...
by skyhook
Wed Mar 04, 2015 9:54 am
Forum: JFreeChart
Topic: Customize colors of steps in Step chart with one data series
Replies: 0
Views: 3612

Customize colors of steps in Step chart with one data series

Hi, Its possible to customize colors of each steps in StepArea chart? I was trying to do something like this: @Override public Paint getItemPaint(int series, int item) { XYDataset dataset = getPlot().getDataset(); if (dataset.getYValue(series, item) == 0) { paint = Color.black; } if (dataset.getYVal...