PDA

View Full Version : How to change Chart series tips style (font and font-size)



stetou
11 Jun 2014, 7:45 AM
Below is what I tried (style, bodyStyle, font)
Here is a series

{type: 'column', xField: 'datereleve',yField: "nbdeces", axis: 'left',
tips:
{
trackMouse: true,
width: 150,
height: 50,
renderer: function(storeItem, item) {
this.setTitle(titre + '<br/>' + storeItem.get('datereleve') + '<br/>n=' + storeItem.get('nbdeces'));
},
bodyStyle: {
font: '5px Helvetica, sans-serif'
}
//style:{'font-size':'4px'}
//font:"5px Helvetica, sans-serif"
}
}

thanks!

mitchellsimoens
26 Jun 2014, 6:18 AM
I try to stay away from setting styles in javascript and do it in CSS and only provide a cls in javascript. So if you set the cls config, does that tip get that class so that you can use CSS to style it?