Hello @zafzal!
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
<span/>
tag.
So first, add a style block with the custom style in the
<head/>
section:
<style type="text/css">
.newfont-title {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
font-size: large;
font-weight: bold
}
</style>
Then wrap the title in the
ext:LineSeries
block,
Titles
config (around line 146) with a span; from:
Titles="Blue Line"
to:
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)
From:
<LegendConfig runat="server" Dock="Bottom" />
to:
<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 directly.

Originally Posted by
zafzal
The version is 4.0.0.0.
You may notice the
LegendDomConfig
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!