Jump to content
Software FX Community

bar graph change colours of bars


Syllogism

Recommended Posts

Hi there 

 

does anyone know how I change the colours of the bars from their default colours?

I'm creating a bar chart. Here is my current code:

 

<ChartFXGauge:VerticalGauge ID="VerticalGauge1" runat="server" Height="283px"   Width="82px" Border-Inverted="False" Antialiasing="None">   <Titles>   <ChartFXGauge:Title Font="Microsoft Sans Serif, Medium" Text="RU Concentration"   VerticalPosition="OutsideBorder" Color="150, 150, 150">   <Layout SerializableAnchorPoint="0.48, 0.98" Target="AnchorPoint" />   </ChartFXGauge:Title>   <ChartFXGauge:Title Color="150, 150, 150" Font="Microsoft Sans Serif, Medium"   Text="+OK @ 9:30:40 AM" VerticalPosition="OutsideBorder">   <layout serializableanchorpoint="0.5, 0.022" target="AnchorPoint" />   </ChartFXGauge:Title>   </Titles>   <Images>   <ChartFXGauge:BitmapImage ImageUrl="~/vertical-gauge-more-whitespace.png">   </ChartFXGauge:BitmapImage>   </Images>   <Border InsideColor="235, 235, 235" visible="False" /><Scales><ChartFXGauge:LinearScale Color="215, 225, 243" Max="100"   AutoScaleInterval="0, 50"><Indicators>   <ChartFXGauge:Filler Value="0" ColorTransparency="150"   VerticalPosition="BehindTickmarks"></ChartFXGauge:Filler></Indicators><Bar Color="215, 225, 243"></Bar>   <Sections>   <ChartFXGauge:Section Bar-Color="Green" Color="Green" Max="12.5">   </ChartFXGauge:Section>   <ChartFXGauge:Section Bar-Color="Orange" Color="Orange" Max="25" Min="12.5">   </ChartFXGauge:Section>   <ChartFXGauge:Section Bar-Color="Red" Color="Red" Max="37.5" Min="25">   </ChartFXGauge:Section>   </Sections>   <Tickmarks>   <Major Color="140, 140, 140" Size="1.6" Style="Tickmark03_2">   <Label Font="Microsoft Sans Serif, Smaller" />   </Major>   <Medium>   <Label Color="150, 150, 150" />   </Medium>   <Minor>   <Label Color="150, 150, 150" />   </Minor>   </Tickmarks></ChartFXGauge:LinearScale></Scales>   </ChartFXGauge:VerticalGauge>

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...