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

Font size of the Labelitem

4 Answers 102 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 16 Apr 2013, 10:00 PM
How can I do to change font family and font size of the Item Label.

I have 3 series stackedbar and I need to put a label above each series

4 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 17 Apr 2013, 04:04 AM
Hi,

Try setting the following.
aspx:
<ChartTitle>
     <TextBlock Text=" Chart"
        <Appearance TextProperties-Font="Verdana, 10pt"></Appearance>
    </TextBlock>
 </ChartTitle>

Thanks,
Shinu
0
Paulo
Top achievements
Rank 1
answered on 17 Apr 2013, 12:53 PM
I have a dificult to say my doubt, because i don't write english. I have 3 bar series. Inside the bar, have a value. I need change font size and font color that label, that value. Do you understand?
0
Paulo
Top achievements
Rank 1
answered on 17 Apr 2013, 01:11 PM
I made:

chartSeries1.Appearance.TextAppearance.TextProperties.Font =
new System.Drawing.Font("Arial", 15, System.Drawing.FontStyle.Bold);

but, don't work

the code above work only with label on XAxis, but not with value inside the bar.
0
Paulo
Top achievements
Rank 1
answered on 18 Apr 2013, 03:01 PM
I solved. 

for(int i = 0; i < 6; i++)
{
radChart1.Series[i].Appearance.TextAppearance.TextProperties.Font = new System.Drawing.Font("Arial", 12, System.Drawing.FontStyle.Bold); 
}

Thanks for all
Tags
General Discussions
Asked by
Paulo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Paulo
Top achievements
Rank 1
Share this question
or