Renish-GlobeSync / core-plot

Automatically exported from code.google.com/p/core-plot
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

problem with axis relabel #545

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
1. I have a CPTGraph, the x-axis contains dates
2. If I add a new date before the first date, the x-axis labels, show bad values

When I scroll the current graph position out of the screen, and then i scroll 
back, the labels shows the correct values.

For example:
I have datas on:
   06.01, 06.03, 06.05  -->  the x labels: 05.29, 05.30, 05.31, 06.01, 06.02, 06.03, 06.04, 06.05
I add a new data to 05.30, so datas on:
   05.30, 06.01, 06.03, 06.05  -->  the x labels: 05.31, 06.01, 06.02, 06.03, 06.04, 06.03, 06.04, 06.05

If I scroll out one part of the table, and back, the labels of this part are 
fixed

After insert the new data a call:

    [graph reloadData];
    [((CPTXYAxisSet *)graph.axisSet).xAxis needsRelabel];
    [((CPTXYAxisSet *)graph.axisSet).xAxis relabel];

The datas showed in the right position, and the graph is perfect, only the 
labels have problems.

How can I refresh the labels without scrolling out-back?

I develop for up to IOS 5.1, and use the latest version of Core-Plot.

Original issue reported on code.google.com by ecslas.a...@gmail.com on 6 Jun 2013 at 8:20

GoogleCodeExporter commented 8 years ago
How are you labeling the axis? What labeling policy are you using? The axis 
labels depend only on the plot range and the labeling policy, not the plot data.

Original comment by eskr...@mac.com on 6 Jun 2013 at 1:31

GoogleCodeExporter commented 8 years ago

Original comment by eskr...@mac.com on 31 Jul 2013 at 11:23