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. Web Development
  3. ASP.NET
  4. asp:Chart - background color help

asp:Chart - background color help

Scheduled Pinned Locked Moved ASP.NET
sysadmindata-structuresarchitecturehelptutorial
3 Posts 2 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.
  • B Offline
    B Offline
    bonkers123
    wrote on last edited by
    #1

    Hi, I created a simple graph that will display the Altitude of a unit, but I can not figure out how to change that ugly white background color to something else... Note, I find that almost every color is configurable except the white background behind the background behind the graph...

    <asp:Chart ID="Chart1" runat="server" Height="270px" Width="898px" BackColor="#005375"

    BorderColor="26, 59, 105" BorderDashStyle="Solid" Palette="Fire" BackSecondaryColor="Gainsboro"

    BackGradientStyle="TopBottom" BorderWidth="2"

    BackImageTransparentColor="#003366" BorderSkin-BackColor="#003366"

    BorderSkin-BackImageTransparentColor="#003366"

    BorderSkin-BackSecondaryColor="#003366" BorderSkin-PageColor="#003366"

    BorderSkin-SkinStyle="None">

    <Titles>

    <asp:Title Font="Trebuchet MS, 14pt, style=Bold" Text="Trip altitude information"

    Name="Title1" Alignment="TopCenter" ForeColor="200, 200, 200, 200">

    </asp:Title>

    </Titles>

    <Legends>

    <asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold">

    </asp:Legend>

    </Legends>

    <BorderSkin SkinStyle="Emboss"></BorderSkin>

    <ChartAreas>

    <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Black"

    BackColor="#56818E" ShadowColor="Transparent" BackGradientStyle="LeftRight">

    <Area3DStyle Rotation="0" Perspective="0" Enable3D="True" Inclination="10" IsRightAngleAxes="False"

    WallWidth="0" IsClustered="False" />

    <AxisY LineColor="64, 64, 64, 64" Title="Altitude [m]">

    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />

    <MajorGrid LineColor="64, 64, 64, 64" />

    </AxisY>

    <AxisX LineColor="64, 64, 64, 64" Title="Time">

    <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />

    <MajorGrid LineColor="64, 64, 64, 64" />

    </AxisX>

    </asp:ChartArea>

    </ChartAreas>

    </asp:Chart>

    Any help would be much apprecitiated...

    A 1 Reply Last reply
    0
    • B bonkers123

      Hi, I created a simple graph that will display the Altitude of a unit, but I can not figure out how to change that ugly white background color to something else... Note, I find that almost every color is configurable except the white background behind the background behind the graph...

      <asp:Chart ID="Chart1" runat="server" Height="270px" Width="898px" BackColor="#005375"

      BorderColor="26, 59, 105" BorderDashStyle="Solid" Palette="Fire" BackSecondaryColor="Gainsboro"

      BackGradientStyle="TopBottom" BorderWidth="2"

      BackImageTransparentColor="#003366" BorderSkin-BackColor="#003366"

      BorderSkin-BackImageTransparentColor="#003366"

      BorderSkin-BackSecondaryColor="#003366" BorderSkin-PageColor="#003366"

      BorderSkin-SkinStyle="None">

      <Titles>

      <asp:Title Font="Trebuchet MS, 14pt, style=Bold" Text="Trip altitude information"

      Name="Title1" Alignment="TopCenter" ForeColor="200, 200, 200, 200">

      </asp:Title>

      </Titles>

      <Legends>

      <asp:Legend IsTextAutoFit="False" Name="Default" BackColor="Transparent" Font="Trebuchet MS, 8.25pt, style=Bold">

      </asp:Legend>

      </Legends>

      <BorderSkin SkinStyle="Emboss"></BorderSkin>

      <ChartAreas>

      <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BackSecondaryColor="Black"

      BackColor="#56818E" ShadowColor="Transparent" BackGradientStyle="LeftRight">

      <Area3DStyle Rotation="0" Perspective="0" Enable3D="True" Inclination="10" IsRightAngleAxes="False"

      WallWidth="0" IsClustered="False" />

      <AxisY LineColor="64, 64, 64, 64" Title="Altitude [m]">

      <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />

      <MajorGrid LineColor="64, 64, 64, 64" />

      </AxisY>

      <AxisX LineColor="64, 64, 64, 64" Title="Time">

      <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" />

      <MajorGrid LineColor="64, 64, 64, 64" />

      </AxisX>

      </asp:ChartArea>

      </ChartAreas>

      </asp:Chart>

      Any help would be much apprecitiated...

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      Are you using .NET 3.5 SP1 and Microsoft Chart Control ?

      cheers, Abhijit My Recent Article : Beginner's Guide To View State

      B 1 Reply Last reply
      0
      • A Abhijit Jana

        Are you using .NET 3.5 SP1 and Microsoft Chart Control ?

        cheers, Abhijit My Recent Article : Beginner's Guide To View State

        B Offline
        B Offline
        bonkers123
        wrote on last edited by
        #3

        yes.... I "fixed" it by setting the border like this...

        Tnx ^_^

        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