.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

MSLine chart y axis interval need to change

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :ASP.Net

i got a small problem in line charts Y - Axis intervals. Scenario is like this.                  

                  there is a line-chart control where min value is '0' and max value is '100'. But my problem is we cannot predict the interval, means should be change

So y axis should be like this " 0,10,16,24,31,40.7,50,56,59,74,87,100

how to achieve this.



View Complete Post

More Related Resource Links

Is there a way to specify that I do not want fractions for my interval on a chart axis ?

Using reporting services 2008 I have a bar chart which shows number of employees by department. When the number of employee is small, I get fractions on the Y axis like 0, 0.25, 0.5, 0.75, 1, 1.25, 1.5, 1.75, 2 I know that I can manually set the interval to 1 which solves the problem but I also have the same problem with bigger numbers (I also have the scale breaks enabled) For example when I have 40, 44 and 66 in my dataset the Y axis is as follow: 39.6, 39.8, 40.0, 40.2, 43.6 (scale break), 65.6 (scale break), 66.1 This is not really what I expected... Is there any way to get a better behavior ? Thanks Paul

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.

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.

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

dynamic min value in y-axis for line chart

How to set dynamic min value in y-axis for line chart in ssrs 2005 give me examples Table Test rid Percentage Reason1 98 Reason2 89 Reason3 87 Reason4 82 Reason5 91 Reason6 96 example: y-axis should start 80(if it is 70 it should start 70) by dynamically

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?




Scatter Chart Problem With X-Axis



I have designed a Report with a Graph of the Type Simple Scatter. I have set
the Average value for  x and the y axis Coordinate is duration in integer. For the y-Axis it
works, but the Average value on the x axis is ignored. I want to consider the value max 500  
for the x-axis’s, but it could not display the x-axis value when I put the series value as Events  

And If I am considering the Category field as Year, Quarter, Month or week but it not considered.

I confused about this problem. Please tell me This problem is occur from my side or from SSRS.

I have find some forums as :


Scatter-Chart Bug ?!?!

Scatter Chart Issue


http://www.thedailyreviewer.com/dbsoftware/view/scatter-chart---point-color-based-on-data-value-107504920 <

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.



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



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.

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.



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.



SSRS 2008 r2 line chart primary and secondary category axis


I want to plot series in a line Graph on UTC time which has to be placed on Primary category axis. The secondary category axis should just display the correspoding PST time(No series need to be plotted on this). Is there a way to achive this?

Scatter chart - how to get rounded numbers on X axis?


I have a scatter chart in my report. On the category axis I am grouping by Product. There are no series groups. In the value well I have one value with the following subitems: Sum(Sales) and Sum(OrderQty). So I am plotting OrderQty vs Sales, by Product.

Here's the problem: I am getting nice round numbers on the Y axis, but on the X axis I get weird numbers (such as 2103, 3103 etc instead of 2000, 3000). I have turned on the margins for X axis, that doesn't help. What does help is if I set Minimum on the X axis to 0. But I want Minimum to be automatically calculated.

I am using Report Builder 3.0


SSRS 2008 chart Scalar axis, repeating the datapoints


In the SSRS 2008 chart, I made the x axis scalar and it’s a date type. On Y axis i have a simple "count" (number) corresponding to each date.

Now the x axis always has 9 points regardless of months i return from query. Like say i have data for only 8/31/2010 then i get display like 9 data points on x-axis saying Aug 2010 and on one of those, i get the count value.

If data points are more than 12 then graph is looking nice otherwise same problem of repeating the month values.

Same problem the with day wise graph too. If data points are more that 5- 10,  day wise graph looks good. otherwise some days points get repeated.

Can anybody suggest me the solution ?


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