PDA

View Full Version : Bar Chart Legend style issue



vinayakshukre
23 Feb 2015, 2:33 AM
Hello , I am new to sencha and trying Ext charts. I could get my chart but struggling to get right style for legend. Fiddle for the same is created at https://fiddle.sencha.com/#fiddle/il9

I am trying to set the style properties like size, border color, border size, font but many things are not working. Documentation of Ext.Chart.Legend says that style can be configured using style attribute which can be either String or object. But it does not give any example. I probably don't know what are the exact syntax or attribute names to use under style object. Could somebody provide right attribute names for controlling width, height, font, font size, font color for legend? Thanks a ton.

Gary Schlosberg
2 Mar 2015, 8:11 AM
I believe the 'style' config works on the legend container. You probably want to target the 'x-legend-item' class. You might have a look at the 'cls' config to configure a custom CSS class.