I have moved your thread to the 4.x help forums, to reflect Ext.NET version you're using.
We'd need a working test case to go further than we went with the first reply; I have nothing to add to what was already said with just the code snippet you provided.
You may want to derive your example from this one: Examples Explorer 4 - Charts - Line - Multiple Axes
In that sample, for instance, you can just switch to the DOM legend and wrap the title in a custom-styled
So first, add a style block with the custom style in the
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
Then wrap the title in the
config (around line 146) with a span; from:
Titles="<span class=newfont-title>Blue Line</span>"
And of course, change the legend to use the DOM drawn one; around the bottom of the code (around line 176)
<LegendConfig runat="server" Dock="Bottom" />
<LegendDomConfig runat="server" Dock="Bottom" />
If you override the legend's style itself, you would apply that style to all (if more than one) titles, not just from that specific series.
Overriding styles in the sprite-based legend won't work with CSS; they are customizable via charts theming
Originally Posted by zafzal
You may notice the
is not available for your version of Ext.NET; that's because it was introduced later, with Ext.NET 4.2.0
; it is recommended to use the latest update of Ext.NET version to get the latest features it employs, I am afraid there's not much we can do about that as Ext.NET 4 went as far as 4.8.3. The steps above will probably not work unless Ext.NET is 4.2.0 or newer.
Hope this helps!