Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WPF
  4. Columnbar styling quesiton in SL4 [modified]

Columnbar styling quesiton in SL4 [modified]

Scheduled Pinned Locked Moved WPF
helpcssdata-structuresquestion
2 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    CrafterIt
    wrote on last edited by
    #1

    Hi i need some help, my styling is not working a i would like it to. on the x axis that i try to style i have 4 text´s that says "good", "poor" etc... The problem is that after i apply the style and change the angel of the text change to about 10 different values 0 and 1 (there are still 4 columnbars displayed) I want the text good to be at an angle of -64 and adjust the with of the bars to make them smaller EDIT: The independentvalue bindings displays at the top of the graph, the bottom displays values from 0, 0,1 0,2 0,3 ... 1 can anyone help?

               <chartingToolkit:Chart HorizontalAlignment="Stretch"
                                   VerticalAlignment="Stretch"
                                   BorderBrush="White"
                                   x:Name="Chart"
                                   FlowDirection="LeftToRight"
                                   Margin="6,1,1,1"
                                   Grid.Column="0"
                                   Grid.Row="0"
                                   Title="Score"
                                   FontFamily="Arial"
                                   FontSize="10.667"
                                   BorderThickness="0,1,1,1">
                <chartingToolkit:Chart.LegendStyle>
                    <Style TargetType="Control">
                        <Setter Property="Width"
                                Value="0" />
                        <Setter Property="Height"
                                Value="0" />                        
                    </Style>
                </chartingToolkit:Chart.LegendStyle>
    
                <chartingToolkit:Chart.Axes>                    
                    <chartingToolkit:LinearAxis Orientation="X">                        
                        <chartingToolkit:LinearAxis.AxisLabelStyle>                            
                            <Style TargetType="chartingToolkit:AxisLabel">                             
                                <Setter Property="RenderTransformOrigin"
                                        Value="0.8,0.8" />                                
                                <Setter Property="RenderTransform">                                   
                                    <Setter.Value>                                       
                                        <RotateTransform Angle="-65" />
    
    C 1 Reply Last reply
    0
    • C CrafterIt

      Hi i need some help, my styling is not working a i would like it to. on the x axis that i try to style i have 4 text´s that says "good", "poor" etc... The problem is that after i apply the style and change the angel of the text change to about 10 different values 0 and 1 (there are still 4 columnbars displayed) I want the text good to be at an angle of -64 and adjust the with of the bars to make them smaller EDIT: The independentvalue bindings displays at the top of the graph, the bottom displays values from 0, 0,1 0,2 0,3 ... 1 can anyone help?

                 <chartingToolkit:Chart HorizontalAlignment="Stretch"
                                     VerticalAlignment="Stretch"
                                     BorderBrush="White"
                                     x:Name="Chart"
                                     FlowDirection="LeftToRight"
                                     Margin="6,1,1,1"
                                     Grid.Column="0"
                                     Grid.Row="0"
                                     Title="Score"
                                     FontFamily="Arial"
                                     FontSize="10.667"
                                     BorderThickness="0,1,1,1">
                  <chartingToolkit:Chart.LegendStyle>
                      <Style TargetType="Control">
                          <Setter Property="Width"
                                  Value="0" />
                          <Setter Property="Height"
                                  Value="0" />                        
                      </Style>
                  </chartingToolkit:Chart.LegendStyle>
      
                  <chartingToolkit:Chart.Axes>                    
                      <chartingToolkit:LinearAxis Orientation="X">                        
                          <chartingToolkit:LinearAxis.AxisLabelStyle>                            
                              <Style TargetType="chartingToolkit:AxisLabel">                             
                                  <Setter Property="RenderTransformOrigin"
                                          Value="0.8,0.8" />                                
                                  <Setter Property="RenderTransform">                                   
                                      <Setter.Value>                                       
                                          <RotateTransform Angle="-65" />
      
      C Offline
      C Offline
      CrafterIt
      wrote on last edited by
      #2

      I got it working, i replaced LinearAxis with CategoryAxis.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups