How to have multiple X axes with specified labels location


« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Kalmer on 3rd December 2012
Hi,

I'm using scatter chart to plot measurment data.
Is it possible to define second x axis label location?
Syntax below does not work
RGraph.DrawXAxis(obj, {
                                'axis.y': obj.canvas.height - 25,
                                'axis.labels': [['Team A',10],['Team B',20]],
                                'axis.hmargin': 5
                               });
Posted by RGraph support on 3rd December 2012
Hi,

You've just got the format of the labels a little mised up - try this insted:

RGraph.DrawXAxis(obj, {
                        'axis.y': obj.canvas.height - 25,
                        'axis.labels': ['Team A','Team B','Team C','Team D'],
                        'axis.hmargin': 5
                       });
Posted by Kalmer on 4th December 2012
I mean by axis label location defining that for example:
Team A = 10% of axis lenght, Team B = 27% of axis lenght, Team C = 63% of axis lenght.
How to set that?
Right now Team A = 25% of axis lenght and so on.
Posted by RGraph support on 5th December 2012
Hi,

The Scatter chart allows you to specify the exact location of labels:

www.rgraph.net/docs/scatter.html#labelpoints

If you wish I can add this to the DrawXAxis() function as a "license holders customisation".
Posted by Kalmer on 6th December 2012
No need for special additions. I thought that undocumented feature is available.
But thanks for quick and clear answers.
Question was for my hobby project: temp.kanna.era.ee

Add a reply

 




« Back to message list
RGraph on social media