Closed GoogleCodeExporter closed 9 years ago
The reason of required functionality is the this graph is generated on
scrollView. Next two pages pages with forthcoming weather data are generated on
following pages. Graphs should appear joined.
Original comment by kucera.l...@gmail.com
on 19 Mar 2012 at 8:45
Attachments:
This behavior is related to the problem fixed in issue #104. Since you're
placing a series of graphs next to each other, can't you just place the label
on the next graph? You probably don't want labels from both graphs to overlap
each other anyway. If there are any slight alignment problems, the overlapping
labels will be blurry.
Original comment by eskr...@mac.com
on 20 Mar 2012 at 12:05
Yes, I would appreciate exactly such a behavior, probably switchable with some
property. As you can see on third screen shot, there is border between pages.
Graphs are continually joined, but labels are not drawn correctly. You are sure
I can place the label on second screen, od at least in the middle, which works.
I my opinion is that this behavior is correct, to draw everything what should
be drawn. If you would limit some values, you can use visibleRange. Libor
Original comment by kucera.l...@gmail.com
on 20 Mar 2012 at 6:45
There are other artifacts in the third image besides the cutoff label. The
gradient fill doesn't match up, either. I would recommend that you adjust the
size of the individual graphs so that they join between days. That way you
don't have to worry about breaking the labels and gradients across the joint.
Original comment by eskr...@mac.com
on 21 Mar 2012 at 12:32
Well this sounds correct :)
I see the source code of CPTAxis.m
Just for my orientation, the condition, that prevents drawing "outsider" labels
is on line 1284?:
-(void)updateAxisLabelsAtLocations:(NSSet *)locations inRange:(CPTPlotRange
*)labeledRange useMajorAxisLabels:(BOOL)useMajorAxisLabels;
if ( labeledRange && ![labeledRange contains:locationDecimal] ) {
continue;
}
is that right? Are there any other dependencies?
Thank you for your inspirations and thank you for nice job (y)
Original comment by kucera.l...@gmail.com
on 21 Mar 2012 at 8:51
OK I see, this is for the CPTAxisLabelingPolicyProvided :)
-(void)updateCustomTickLabels method handles NONE policy :)
looks like ivar visible holds the ontormation about label visibility, isn't it?
Thank you
Original comment by kucera.l...@gmail.com
on 21 Mar 2012 at 8:57
So I made a Category to CPTAxis class and rewrote updateCustomTickLabels
method, disabling test for label visibility. Then I set offset for all data in
value of 86400 to prevent negative values in label.tickLocation.
Now it works as I need. Drawing is not 100% precise but for my purposes is
acceptable. Thank you for your help :)
Original comment by kucera.l...@gmail.com
on 21 Mar 2012 at 2:08
Original comment by kucera.l...@gmail.com
on 21 Mar 2012 at 4:27
Attachments:
Original comment by eskr...@mac.com
on 21 Mar 2012 at 11:19
Original issue reported on code.google.com by
kucera.l...@gmail.com
on 19 Mar 2012 at 8:41Attachments: