Search found 4 matches

by jet
Wed Aug 11, 2010 9:22 am
Forum: JFreeChart
Topic: Minimum BAR Width of XYBar Chart
Replies: 4
Views: 6441

Re: Minimum BAR Width of XYBar Chart

thanx, so how about XYSeriesCollection. is there any way to set fixed width, i'm totally cofused about it right now :?
by jet
Tue Aug 10, 2010 3:40 pm
Forum: JFreeChart
Topic: Minimum BAR Width of XYBar Chart
Replies: 4
Views: 6441

Re: Minimum BAR Width of XYBar Chart

Hi, i'm using XYBarRenderer and i dont know how can i set fixed bar with. Setting bar width in percentage is not good, because sometimes i have data like [1.121 1.122 1.123 1.124] and sometimes like [83 84 85] so renderer.setMargin(0.99); is not cool in my case because with different data i have dif...
by jet
Thu Aug 05, 2010 4:58 pm
Forum: JFreeChart
Topic: Show/Hide Tick Marks
Replies: 6
Views: 11775

Re: Show/Hide Tick Marks

thanks, but it doesn't work, cuz method getDomainAxis() returns CategoryAxis, so its gonna be

Code: Select all

CategoryAxis domainAxis = plot.getDomainAxis ();
when i wrote this

Code: Select all

NumberAxis axis =   (NumberAxis) plot.getDomainAxis();
it said "inconvertible types"
by jet
Thu Aug 05, 2010 3:23 pm
Forum: JFreeChart
Topic: Show/Hide Tick Marks
Replies: 6
Views: 11775

Re: Show/Hide Tick Marks

Hi guys, i have something like this on my x axis 1,2...1,3..1,4...1,5..1,6 |___|____|___ |___| so how can i remove labels that i do not need(example bellow) 1,2 ........1,4........1,6 |___|____|___ |___| next code works for y axis not for x NumberAxis axis = (NumberAxis) plot.getRangeAxis(); axis.se...