.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

MS Chart Control ( Does not display all labels in X Axis - Column Chart )

Posted By:      Posted Date: October 09, 2010    Points: 0   Category :ASP.Net


I am facing one problem while using MS Chart Control.. In Column Chart When i am finding minimum no of records chart displays properly.

But When i finding more than 20 records, in X Axis records display randomly(i have 20 records, chart is coming but x axis labels does not appear for all 20.it display 4 or 5 lables only) .. I increased the chart size also. Still it is happeing...

Any one give me idea about to fix this problem..

Thanks in Advance.

View Complete Post

More Related Resource Links

Chart Control 3.5 - X-axis Labels

I have a fairly basic line graph which is bound to a SQLDataSource control.  The graph displays perfectly, but I want the labels on the X-axis to display vertically rather than horizontally.I have used the following code to try and do this but it is having no effect:<AxisX Title="Patient Safety Submissions" IsLabelAutoFit="True">    <LabelStyle Angle="90" interval="1" /></AxisX>Can anyone help?Here is the complete code for my chart:<asp:Chart ID="chrtHHcompliance" runat="server" DataSourceID="sqlHHcompliance" Width="1000px">                    <Titles>                        <asp:Title Font="Microsoft Sans Serif, 12pt, style=Bold, Underline"                                    Name="Title1" Text="Hand Hygiene Weekly Percentage Compliance">                 &nbs

3-D column chart - Y - Axis Labels -Instead of Legend



I am having a 3d Column chart in my report but I am not able to show the Labels on the right hand side. as for right hand side it shows only LEGENDs ,not Labels property.

Please have a look at the chart in this like


In this  example

I am able to show the sales figures (Z-axis) and promotion type (X-axis),

but not able to show the date shown in  (Y-axis)

I don't know how to set the labels for Y-axis in this kind of chart.I dont want to show legend as its of no use same color is coming for all Years.

Any help on this.



Dual values in Column chart Y axis in SSRS 2008

Hi,  Any one pls tell me how to show dual values in Column chart Y axis. Example: Im showing Total Number of clients in the Y axis of column chart My Requirement is In that Y axis column chart also  i want to show differently of Inactive clients from total number of clients. how to do this pls help me. Thanks in advance. TotalnumberOf clients :  1000 InActive Clients : 200 among TotalnumberofClients      

Display name of months on x-axis in a chart

Could you please let me know if there is any expression which can be used to display the months on x-axis of the column chart. I've tried playing with the Axis option trying to change the interval type to "months" but it is not giving the result. Thank you.

Alternate lables are displayed along x axis in chart web part for column chart type

HI I am using Chart webpart of Sharepoint 2010. I am connecting this webpart to my custom list having two coulmn Title  (string) and Count (numeric) and using Column chart type i am displaying data in web part. Each column in chart represents one item in list and displyed along x axis, while y axis represents count. For more than 9 columns in column chart (i.e. more than 9 itmes in list) in chart web part only alternate lables are displyed along x axis. Any help in this will be appreciated.

How to redisplay a category-axis on a column chart after it has been deleted.


Hi All,

This should be simple, but I'm tearing my (limited) hair out trying to solve this.  I have a combined column chart (primary Y axis) and line chart (secondary Y axis) in which the category-axis (X-Axis) was deleted.  Now I want the X-Axis to re-appear.  I can't seem to find an option for re-applying the X-Axis after it has been deleted.

How do I do this?




Line chart Category Axis labels not displaying


I've got a few series of data (counts) that I've summed by month and year. So, the data looks like 

Value 'June 2010' 'July 2010', ....

Open       3                5  ...

Closed     6                10....


I've got a line chart of this data. The issue I have is on the category axis, I have the months as the value. However, only a couple of the 12 months are being displayed. The chart is populating properly, but I want every month to list out on the category axis. How can I do this, since my category type is a string? What should I set the interval, etc. to? This seems pretty basic, so I must be missing something simple.



Chart Control doesn't show all labels



I'm trying to create a very simple Column chart.

There are 10 items in X axis, but chart shows only 3 of their labels.

For clarification, I'm trying to show Product sales count in chart. There are 10 products. In X axis, chart shows 10 products but, only 3 of them has a label for product name.

It should be a setting for this, bu I couldn't find it.

Thanks in advance

Missing labels in chart bar the X axis


Hi All

I have a report with a bar chart. Within each category of the bar chart I have 3 bars that are compared with each other.

The problem is that not all the categories labels are shown, even though there is enough free space on the axis (the font is very small).

Can I configure the chart thus all the values will apear?

Thank you.



Need help to display the axis dynamically in Line chart



I created one date hierarchy like year-->quarter-->Month and i'm creating one parameter YeartoMonth (year i'm using date hierarchy)

i want create one line chart with hierarchy axis it means

when i select any value from yeartomonth filter i want display those valus in axis of the line chart

like if i select Q1 , Q2,Q3 from 2010

i want to display the Q1,Q2,Q3 as the axis for that line chart

it means i want pass those values dynamically based on filter selection

Please can you help me to solve this issue

Thanks in advance...

crystal report -visual studio 2008 dual axis chart (bar & line)


dear all, 

i use crystal report integrated with  vs.2008, and i want to make chart with dual axis (bar & line).

i have used bar chart and input the data with 2 values..

then in chart options > template, i activated the dual axis..

my question is, how i can change the 2nd value with line chart not bar chart??

i'd tried to find the right settings in "chart options" but still can't find the solution.

for information in "chart options" there are 4 sub menu : template, general,titles,grid..

i read in a tutorial there's more sub menu called "series" in crystal report (stand alone version)..

is it possible doing it in Crystal Report VS. 2008?

please,, i need your advice and solution..

Thanx before..


Chart X axis is in Time



My application work in this ways. I got a database collect data from 20 sensors. Database holds Temperature and DateTime data/Records from sensors. So i would like to make it whenever i view the chart, it will plot a line chart one by one according to the temperature and timestamp(DateTime). Which mean my X axis is a colleborate time on that particular date. Anyone did this before or advice ? Thanks.

I already design a in the way that the line chart will plot base on both dropdownlist, Sensor ID and Date. So it will work like whenever i select a Date or ID it will read the records from database table temperature.

using jquery tooltip with asp:Chart control


I'm trying to use qtip (jquery plugin) instead of the standard tooltip control provided for the asp:Chart. I think the best way to do this is with an img map, though I don't know how to implement it. Does anyone know how to implement the img map for an asp:Chart?

Stacked Column Chart: Workaround for busted InsertEmptyPoints

I had to struggle with this a bit so I'm gonna share what I figured out. To make a stacked column chart from a SqlDataSource you need to use DataBindCrossTable like this... CHART1.DataBindCrossTable(SqlDataSource1.Select(DataSourceSelectArguments.Empty), "proceso_estado_nombre", "max_fecha_final", "valor", "") Now, each series created needs to be converted to StackedColumn type, which you do like this... For Each series As DataVisualization.Charting.Series In CHART1.Series    series.ChartType = DataVisualization.Charting.SeriesChartType.StackedColumnNext The problem at this point is that the chart wont work if you don't have the same number of points in each series and each set of points should have the same X values. So to fill in the empty points in each series you can use InsertEmptyPoints like this... CHART1.DataManipulator.InsertEmptyPoints(1, DataVisualization.Charting.IntervalType.Months, series.Name.ToString) However, when I did this I got inconsistent results. See below... <Series>    <Series Name="Terminado" Legend="Default" XValueType="Date" ChartType="StackedColumn" ChartArea="ChartArea1" ToolTip="Terminado: #VALY{C0}">      <Points>      

Line Divider i n Column chart in SSRS 2008

Hi,  Any one pls tel me how to do the single line divider in Column chart in SSRS 2008 example: --------- |               | |     20      | ---------- |       100 | |               | -------------------------------   i want to show the above example. Thanks in advance Regards, Abdul2010

WPF Chart Control

Hi,I'm trying to locate the WPF chart control that Microsoft treated as an intern project a while back: http://channel9.msdn.com/ShowPost.aspx?PostID=232493  The reason that I'm interested is that I'm in the process of taking a Windows Forms graph control (think of a line graph versus a bar chart) and converting it to be a WPF one . and would be very interested in taking a look at what those two interns had done . to try and determine best practices and the right approach for our new WPF graph control. I contacted Kevin Moore and he thought that this component was getting pretty close to being released to the public. Anyone know the current status of it? Thanks, Cory
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend