GraphView icon indicating copy to clipboard operation
GraphView copied to clipboard

Custom Horizontal axis label isn't getting updated

Open gandharva opened this issue 13 years ago • 6 comments

I'm reseting GraphView with new series. I'm also resetting the custom horizontal labels with new array. But the labels aren't getting updated. I have tried various options-

  • redrawAll()
  • getting access to GraphViewContentView() and invalidating it.

gandharva avatar Dec 02 '13 14:12 gandharva

It's working for me. Did you tried it with current master branch?

jjoe64 avatar Dec 05 '13 06:12 jjoe64

I did try the latest branch. It's not working for me.

gandharva avatar Dec 06 '13 07:12 gandharva

how are you doing this? are you changing the custom label formatter or are you using static labels? Static labels are not working if the graph is scalable or scrollable

jjoe64 avatar Dec 06 '13 07:12 jjoe64

The graph has fixed vertical labels (custom) and dynamic horizontal level. The graph itself isn't scalable or scrollable. I just reset it with new data and new set of custom horizontal labels corresponding to that.

Sent from my Moto X On Dec 6, 2013 1:18 PM, "Jonas Gehring" [email protected] wrote:

how are you doint this? are you changing the custom label formatter or are you using static labels? Static labels are not working if the graph is scalable or scrollable

— Reply to this email directly or view it on GitHubhttps://github.com/jjoe64/GraphView/issues/105#issuecomment-29969787 .

gandharva avatar Dec 06 '13 08:12 gandharva

maybe you can post a small code snipped where it is reproducable, because I tried it and it worked for me...

jjoe64 avatar Dec 06 '13 09:12 jjoe64

@gandharva @jjoe64 i am facing same problem. Problem comes into effect when you set a daynamic horizontal labels using setCustomLabelFormatter, and you set scalable(true). scaling doesnt works. as it should work on without setting view-port. besides if i set viewport with daynamic horizontal labels using setCustomLabelFormatter then graphview shows unusual behavior (i cant see any data points)

krishnalalstha avatar Feb 10 '14 09:02 krishnalalstha