# Maths equation question

**URL:** https://forum.kirupa.com/t/maths-equation-question/274813
**Category:** flash
**Created:** [November 5, 2008, 9:54am UTC](https://forum.kirupa.com/t/maths-equation-question/274813 "2008-11-05T09:54:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![daidai](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/daidai/32/3087_2.png) [@daidai](https://forum.kirupa.com/u/daidai)
#### Post date: [November 5, 2008, 9:54am UTC](https://forum.kirupa.com/t/maths-equation-question/274813/1 "2008-11-05T09:54:35Z")

</div>

I have a graph run from xml that could have anywhere from 1 to 31 points on the x axis. The problem relates to the labels on the graph, the dimensions are small so when theres only say 4 or 5 points it looks fine but when it gets past 20 it starts to look rubbish and the labels overlap. I want to work out an equation to only show 4 of the labels at any one time, but the maths is causing me headaches - my maths side of programming has always let me down so any advice/help would be fantastic.  
anyone any pointers?  
thanks  
:ducky:
