Value label color...

Thread is closed for posting
5 posts, 0 answers
  1. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 25 Jul 2009 Link to this post

    Hi,

    since the chart (and was it doe's with visual studio) almost drives me crazy - I have a simple question.
    I simply want to change the color of the text showing the value to black.
    I could manage it to set the "Label (DataLabel) color" but I can't find a way to change the color of the "value" shown on top of the bar.
    I really hope this needs no code behind :)

    My chart looks like this (at least when it doesn't change by itself :)):
            <telerik:RadChart ID="rcGespraechsAuswertung2" runat="server" Width="910px" Height="500px" IntelligentLabelsEnabled="False" DataSourceID="SqlDataSource1" AutoLayout="true" Legend-Appearance-Visible="false" SeriesOrientation="Horizontal">  
                <Appearance> 
                    <FillStyle MainColor="255, 255, 220" FillType="Solid">  
                    </FillStyle> 
                    <Border Color="103, 136, 190" /> 
                </Appearance> 
                <PlotArea> 
                <Appearance> 
                    <FillStyle MainColor="255, 255, 220" FillType="Solid">  
                    </FillStyle> 
                    <Border Color="149, 184, 206" /> 
                </Appearance> 
                    <XAxis DataLabelsColumn="Beschr">  
                        <Appearance TextAppearance-TextProperties-Color="Black" Color="Black" MajorTick-Color="165, 190, 223">  
                            <MajorGridLines Color="165, 190, 223" /> 
                        </Appearance> 
                    </XAxis> 
                    <YAxis AxisMode="Normal">  
                        <Appearance TextAppearance-TextProperties-Color="Black" Color="Black" MajorTick-Color="165, 190, 223" MinorTick-Color="165, 190, 223">  
                            <MajorGridLines Color="165, 190, 223" /> 
                            <MinorGridLines Color="165, 190, 223" Width="0" /> 
                        </Appearance> 
                    </YAxis> 
                </PlotArea> 
                <ChartTitle> 
                    <Appearance Dimensions-Width="900px" Dimensions-Margins="3px, 0px, 0px, 0px" Dimensions-Paddings="0,0,0,0">  
                    </Appearance> 
                    <TextBlock Text="Gesprächsauswertung">  
                        <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 12pt, style=bold" Dimensions-Width="870px" Dimensions-Height="24px" Dimensions-AutoSize="false" Dimensions-Paddings="3,3,0,0">  
                        <FillStyle MainColor="#859bbc" FillType="Solid" /> 
                        </Appearance> 
                    </TextBlock> 
                </ChartTitle> 
            </telerik:RadChart> 
     
    By the way - this "Color=Black" has no effect - it was just a try to change this text.
    And what I mean about "if it does not change by itself" - I swear the thing is horrible.
    I'll prepare a short video to show what I mean.

    But my only problem is the color or this value text.

    Regards

    Manfred
    PS: the spellchecker seems to be brocken here in the forums...
  2. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 25 Jul 2009 Link to this post

    Hi,

    and on this way a different problem.
    I want to make the chart title a whole line on top of the chart.
    I can achive this (almost) with the width.
    But there is a left border. So I messed arrond with the borders.
                <ChartTitle> 
                    <Appearance Dimensions-Width="910px" Dimensions-Margins="0px; 0px; 0px; 0px" Dimensions-Paddings="0;0;0;0">  
                    </Appearance> 
                    <TextBlock Text="Gesprächsauswertung">  
                        <Appearance TextProperties-Color="Black" TextProperties-Font="Arial, 12pt, style=bold" Dimensions-Width="900px"  Dimensions-Margins="20;10;10;10" Dimensions-Height="24px" Dimensions-AutoSize="false" Dimensions-Paddings="3;3;0;0">  
                        <FillStyle MainColor="#859bbc" FillType="Solid" /> 
                        </Appearance> 
                    </TextBlock> 
                </ChartTitle> 
     
    In the appearance of the textblock I tried a lot of different values.
    But it seems as if only the first value changes anything - but this change takes place on every side...
    And negative values (my idea since the block would fill if it wouldn't have a margin on the left do not work.

    So how to make this "block" display on the whole width?

    Regards

    Manfred
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 25 Jul 2009 Link to this post

    Sorry,

    I got a partial solution for margins -- it seems as if I have to use commas instead of semicolumns.
    Although when I reset the value it shows 1px; 1px; 1px; 1px as default.

    Anyhow - I still found no way to avoid this (about 10px) left border.

    Manfred
  5. Ves
    Admin
    Ves avatar
    2879 posts

    Posted 30 Jul 2009 Link to this post

    Hello Manfred,

    The title - you can place it at your own position:
    <ChartTitle>  
        <Appearance Dimensions-Width="900px" Dimensions-Margins="3px, 0px, 0px, 0px"  Dimensions-Paddings="0,0,0,0" Position-Auto="False" Position-X="0"  Position-Y="5">   
        </Appearance>  

    The item labels - in case you have defined the series in the markup you can use this example:
    <telerik:ChartSeries Name="Series 1"
        <Appearance> 
            <TextAppearance TextProperties-Color="Red"
            </TextAppearance> 
        </Appearance> 

    However, if your series are created in the code behind, you will need to set the text color in code behind too.

    As for the spell checker -- it seems to be working fine now. Let us know if you still have problems with it.

    Sincerely,
    Ves
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  6. ManniAT
    ManniAT avatar
    877 posts
    Member since:
    Nov 2003

    Posted 31 Jul 2009 Link to this post

    Hi Ves,

    maybe I didn't point this out.
    I have some charts where I do the things in code behind - here I create the series - no problems with the text style.

    My problem was with "databinding generated" series.
    Your second snippet was exactly what I've been looking for..

    And of course - your first post solve the caption thing :)

    Thanks a lot for the great support

    Manfred
    PS: and yes - spellchecking is working again
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017