Hey all,
I'm using an array to populate labels for a graph. When I have a lot of keys in the array (user answered a questionnaire many times) there are too many labels in graph and it does not look good.
I want to limit the number of key in the array to 15.
Do you have any ideas about good ways to manipulate the array but leaving the 1'st and last values, and choosing interval keys between them?
Or do you think it will be simpler to do this on mysql level?
Thanks,
Manipulation of an array
Moderator: General Moderators
Re: Manipulation of an array
Maybe you want to set up the graph so that it displays, for instance, every other key (or every third, or fourth, or at most X keys and it figures out how many to skip automatically, or whatever the graph thing is capable of).