Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8569615
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T18:22:37+00:00 2026-06-11T18:22:37+00:00

I have this bar chart control on my web page, I am adding at

  • 0

I have this bar chart control on my web page, I am adding at least 10 values to x-axis and y-axis, but the chart only shows 2 values on x and 3 values on y axis. Below is my code

<asp:Chart ID="ChartTest" runat="server" Height="296px" Width="600px" ImageType="Png" 
            BackColor="#D3DFF0" Palette="BrightPastel" BorderlineDashStyle="Solid" BackSecondaryColor="White" 
            BackGradientStyle="TopBottom" BorderWidth="2" BorderColor="26, 59, 105"> 
            <Titles> 
                <asp:Title ShadowColor="32, 0, 0, 0" Font="Trebuchet MS, 14.25pt, style=Bold" ShadowOffset="3" 
                    Text=" Bar Chart" Name="Title1" ForeColor="26, 59, 105"> 
                </asp:Title> 
            </Titles> 
            <Legends> 
                <asp:Legend Enabled="False" IsTextAutoFit="False" Name="Default" BackColor="Transparent" 
                    Font="Trebuchet MS, 8.25pt, style=Bold"> 
                </asp:Legend> 
            </Legends> 
            <BorderSkin SkinStyle="FrameThin1"></BorderSkin> 
            <ChartAreas> 
                <asp:ChartArea Name="ChartArea1" BorderColor="64, 64, 64, 64" BorderDashStyle="Solid" 
                    BackSecondaryColor="White" BackColor="64, 165, 191, 228" ShadowColor="Transparent" 
                    BackGradientStyle="TopBottom"> 
                    <Area3DStyle Rotation="9" Perspective="10" Enable3D="True" LightStyle="Realistic" 
                        Inclination="38" PointDepth="200" IsRightAngleAxes="False" WallWidth="0" IsClustered="False" /> 
                    <Position Y="10" Height="94" Width="94" X="10" ></Position> 
                    <AxisY LineColor="64, 64, 64, 64"> 
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" /> 
                        <MajorGrid LineColor="64, 64, 64, 64" /> 
                    </AxisY> 
                    <AxisX LineColor="64, 64, 64, 64"> 
                        <LabelStyle Font="Trebuchet MS, 8.25pt, style=Bold" /> 
                        <MajorGrid LineColor="64, 64, 64, 64" /> 
                    </AxisX> 
                </asp:ChartArea> 
            </ChartAreas> 
        </asp:Chart>

and the code behind is below

     var series = ChartTest.Series.Add("series1"); 
        series.ChartType = SeriesChartType.Column; 
        series.XValueType = ChartValueType.Auto; 
        Chart_MRDBHull.Titles[0].Text = "chart 1"; 
        foreach (DataRow dr in ds.Tables[0].Rows) 
        { 
            //if(dr.Table.Columns.Contains( 
            var xValue = dr["class1"].ToString(); 
            var yValue = dr["Total"].ToString(); 
            series.Points.AddXY(xValue, yValue); 
        }

any help will be appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T18:22:38+00:00Added an answer on June 11, 2026 at 6:22 pm

    this may help. Set the Interval Value.

    http://social.msdn.microsoft.com/Forums/en-US/MSWinWebChart/thread/e83917a2-2f06-433a-8ccc-6f1bc329617b/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

So I've made this range bar chart with the MS Chart Control. I have
So I've made this range bar chart with the MS Chart Control. I have
I have a bar chart with the vertical axis this way <mx:verticalAxis > <mx:CategoryAxis
Currently I have a stacked bar chart like this ( jsfiddle demo ) I
Currently i have made a bar chart from a listbox from this example: http://weblogs.thinktecture.com/cnagel/2011/06/wpf-listbox-as-bar-chart.html
I have seen this '[A' in a progress bar module but I can't figure
I have this Google Bar Chart: function drawChart() { var data = new google.visualization.DataTable();
I'm trying to get a System.Web.UI.Datavisualization.Chart control to render on my page using ASP
I'm making a website and I have this HTML for a bar chart: <div
Hy, I have a chart,wich is created in runtime,this could be Line, Bar or

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.