This is a migrated thread and some comments may be shown as answers.

Text Appearance Syntax

1 Answer 66 Views
Chart (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Derek Tapp
Top achievements
Rank 1
Derek Tapp asked on 23 May 2008, 06:21 PM
Hi,

This seems like it should be straightforward, but I can't find the details....

Is there a good resource for the various properties you can use for the TextAppearance property within the HTML tags in RadChart?

e.g.

For a series you can set:

 <Appearance TextAppearance-TextProperties-Color="255,255,255" TextAppearance-TextProperties-Font="Verdana, 12pt">

But what I can't do is find the syntax to make the font bold:

e.g.

 <Appearance TextAppearance-TextProperties-Color="255,255,255" TextAppearance-TextProperties-Font="Verdana, 12pt, Bold">

Doesn't work.

I can achieve this programatically by using:

RadChart1.Series.Item(x).Appearance.TextAppearance.TextProperties.Font = New System.Drawing.Font("Verdana", 12, System.Drawing.FontStyle.Bold)

But what's the syntax to do this directly in the tag? For now it's just the syntax for bold/font weight I'm after, but if there's a good article on the various options for this that would be great.

Thanks

1 Answer, 1 is accepted

Sort by
0
Ves
Telerik team
answered on 26 May 2008, 04:34 PM
Hello Derek,

Thanks for the note. Indeed, we need to improve our documentation.

Onto your question -- you can set it like this:

TextAppearance-TextProperties-Font="Verdana, 12pt, style=Bold"

A hint is to set it design-time and check the generated markup. Hope this helps.

Best wishes,
Ves
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Chart (Obsolete)
Asked by
Derek Tapp
Top achievements
Rank 1
Answers by
Ves
Telerik team
Share this question
or