asp.net-charts

custom label on x-axis

岁酱吖の 提交于 2019-12-22 05:09:11
问题 My chart predicts a value for the next 30 years. The first value must be displayed as year 1. Then year 5, 10... until 30. But internally the first year is 0 and is left off: I tried adding a custom label, but it only breaks the other labels: If I add it to AxisX2 instead of AxisX it does nothing. Here is the code to make the chart and add the lines: public static Chart MakeChart(string title) { var chart = new Chart(); var area = new ChartArea("GrafiekGebied"); foreach (var axis in area.Axes

How To Customize ASP.NET Chart Databound To SqlDataSource

南笙酒味 提交于 2019-12-13 16:17:54
问题 I have an ASP Chart like this: I am not sure how I can make the labels for the values to appear vertical instead of being horizontal. I am not sure if this can be achieved by CSS as the resultant output is an image. All I have with me is the code which says something like this: Saw some similar question here: C# chart rotate labels, but it is for C# and the given solution has C# code. I am using ASP.NET VBScript and also I am not using any code other than the above mark-up. Also please advice

How to make my asp chart scrollable in the x direction

自古美人都是妖i 提交于 2019-12-13 04:28:54
问题 I have an asp chart which looks like this: <asp:Chart ID="Chart1" runat="server" BorderlineColor="Black" BorderlineDashStyle="Solid" BackColor="#B6D6EC" BackGradientStyle="TopBottom" BackSecondaryColor="White" Height="700px" Width="1800px" onload="Chart1_Load" style="margin-top: 0px; margin-left: 10px; OVERFLOW-X:scroll;"> <ChartAreas> <asp:ChartArea Name="ChartArea1"> </asp:ChartArea> </ChartAreas> <Titles> <asp:Title Alignment="TopCenter" Font="Verdana, 12pt, style=Bold" Name="Title1" Text=

ASP.NET Charting Control Transparency

亡梦爱人 提交于 2019-12-12 10:57:17
问题 I'm working with the ASP.NET Charting Library and I've got it generating a pie chart but I'm having a problem configuring it to generate the pie chart with semi-transparent slices. If you look at the image you'll see what I'm talking about. Of the 4 pie charts the top 2 and the bottom left chart have the pie slice transparency I'm talking about. (source: scottgu.com) What settings of the chart do I tweak to render the slices with a certain % of transparency? Thanks! 回答1: Try assigning the

ASP.NET chart controls - how do i create this bar chart?

[亡魂溺海] 提交于 2019-12-12 10:46:48
问题 Got a chart control i wanna make from a data table. the table looks like this: alt text http://www.freeimagehosting.net/uploads/5d02ce1558.png the chart i want will look like this: ''' '''' ''''' '' ' ''''' '' ' ECCTMP ECCTMP ECCTMP Monday Tuesday Wednesday hope this makes sense for each day its grouped b y the type (email, calls). I'm just now sure how to databind it? Billy 回答1: If you're looking to group series in a bar chart then you'll need to use the Chart.DataBindTable method (MSDN).

pass other value than #VALX and #VALY in postback of series to get value on chart click event

好久不见. 提交于 2019-12-11 14:12:01
问题 I am using asp.net chart control and i want to use chart click event to get the deptId value of bar click in bar chart . <Series> <asp:Series Name="Tour" ChartType="Column" ChartArea="MainChartArea" PostBackValue="#VALX"> </asp:Series> <asp:Series Name="Inspection" ChartType="Column" ChartArea="MainChartArea" PostBackValue="#VALX"> </asp:Series> <asp:Series Name="NightHalt" ChartType="Column" ChartArea="MainChartArea" PostBackValue="#VALX"> </asp:Series> </Series> I am using department name

Error Bar change upper, lower and center errors independently of each other

人盡茶涼 提交于 2019-12-11 13:35:10
问题 The charting that's included in .NET seems to have some pretty neat features (For free!), but I can't find a way to set the upper, lower and center markers on the error bars. I can set it to StandardError , FixedError(n) , StandardDeviation or Percentage(n) , but I can't find a way to specify that the Upper Error for this point is 100, the Lower Error is at 65 and the Center Point is at 98. The use-case is that I'm cheating and using error bars to display the Min, Max and Mean for a specific

Display Values on Bars of a Bar chart in asp.net

橙三吉。 提交于 2019-12-10 13:45:48
问题 I want to display values on the top of the bars in asp.net chart. Also I want to hide the x axis while displaying it. For mock up please see the image below. Thanks. I tried following but doesn't work. var c = HorizontalChart; //c.ChartAreas.Add(new ChartArea("HChartArea")); //c.ChartAreas[0].BackHatchStyle = ChartHatchStyle.None; c.ChartAreas[0].AxisX.MajorGrid.Enabled = false; c.ChartAreas[0].AxisY.MajorGrid.Enabled = false; c.ChartAreas[0].AxisY.CustomLabels="Code here for Lable values" <-

Styling the asp.net charting controls

倾然丶 夕夏残阳落幕 提交于 2019-12-06 01:52:35
问题 Using the ASP.Net Chart Controls, which are a subset of the Dundas Chart Controls, How can I make charts that look like this: Instead of this: EDIT: I've made some progress, since asking this question. The styling elements that improve the default graph in both Dundas and MSChart are: Round Corners on the chart container Background colours and gradients on chart container Transparency on column colours Alignment of columns in the x axis (bizarely, MSChart defaults to z axis alignment) Area 3D

ASP.NET Chart Control - Axis labels

安稳与你 提交于 2019-12-05 09:42:40
I am trying out THIS .NET MS Chart control. Could someone who knows about it tell me how to set the axis labels without using data bindings? eg. If there are 3 columns, I am looking for something like this Chart1.AxisX.Labels = ["First", "Second", "Third"]; Thanks in advance. This does it for (int c = 1; c < numOfColumns; c++) chart.ChartAreas[0].AxisX.CustomLabels.Add(new CustomLabel(c - 0.5, c + 0.5, labels[c], 0, LabelMarkStyle.None)); Rob-MakeSoftware Try this: Chart1.ChartAreas["ChartArea1"].AxisX.Title = "Axis X Name" 来源: https://stackoverflow.com/questions/3869694/asp-net-chart-control