PDA

View Full Version : [Question] How to set tooltip on the label in the axis?



ultrakyo
26 Jan 2012, 5:27 PM
Hi, I'd like to set tooltip on the labels in the x-axis.

unlike other components like label in the series, it seems to have different way to do that,
(or it is not just possible to do that?)

and I've been struggling to figure it out.

Does any1 has any ideas?

Thank you in advance.

josephkirubakaran
27 Jan 2012, 10:00 AM
Try the following simple/ugly example:

html:

<body>
<form>
<label id="myLabel" for="age">Age</label>
<input type="text" id="age" />
</form>

ExtJs :

var tip = Ext.create('Ext.tip.ToolTip', {
target: 'myLabel',
html: 'Please enter your age!'
});