Questions tagged [asp.net-charts]

Chart controls enable you to create ASP.NET pages or Windows Forms applications with simple, intuitive, and visually compelling charts for complex statistical or financial analysis.

The ASP.NET Chart server control enables you to create ASP.NET pages that include charts for complex statistical or financial analysis. The Chart control supports the following features:

  • Data series, chart areas, axes, legends, labels, and titles.
  • Data binding.
  • Data manipulation, such as copying, splitting, merging, alignment, grouping, sorting, searching, and filtering.
  • Statistical formulas and financial formulas.
  • Advanced chart appearance, such as 3-D, anti-aliasing, lighting, and perspective.
  • Events and customizations.
  • Interactivity and Ajax.

Code Samples

Community Forum

136 questions
1
vote
1 answer

Find colour assigned to point in ASP.NET pie chart when using Palettes

I've got a basic ASP.NET Charting control set to a pie chart, using the "Bright Pastel" palette and I'd like to link the colours used in the chart to a gridview elsewhere on the page (which is effectively acting as a legend, but will have some more…
Gareth
  • 624
  • 3
  • 10
  • 26
1
vote
1 answer

ASP Chart Labels to display at the data points on multiple series ASP.NET 4

I have an ASP Chart (v4) which displays the data I need perfectly. I want it to show labels at the top of the data points and I am having some difficulty with it. Here is my code that works for both series but does not display the labels: If…
James
  • 900
  • 3
  • 15
  • 28
1
vote
0 answers

My function that generates random color is not working properly. asp.net C#

I created a function that generates random colors. Function: public Color newColor() { Random randomGen = new Random(); KnownColor[] names = (KnownColor[])Enum.GetValues(typeof(KnownColor)); KnownColor randomColorName =…
Pau Gacusan
  • 67
  • 12
1
vote
1 answer

Overlap series in ASP.NET Column/Bar Chart

This is the chart/effect that I'm trying to achieve (from Excel), where a coloured bar/column shows the actual value, and a dash-bordered second bar/column shows the benchmark value: This is what I'm getting, from the code (below): How do I get…
Sean
  • 14,359
  • 13
  • 74
  • 124
1
vote
1 answer

ASP.NET Charting Pie Chart - both inside and outside label per slice

In an existing applications (web forms, but the underlying Microsoft Charting stack is basically the same for winforms/webforms/razor charts) I have Pie Charts, with for each slice the following business data: Value Label Color (used for…
Paul-Jan
  • 16,746
  • 1
  • 63
  • 95
1
vote
0 answers

stop postback on asp .net chart control click

I have a chart with aspx code as below.
murphy1310
  • 647
  • 1
  • 6
  • 13
1
vote
1 answer

How to bind highcharts from database using DotNet.Highcharts in asp.net

how to get this data "{ 29.9, 71.5, 106.4}" from database??? DotNet.Highcharts.Highcharts chart = new DotNet.Highcharts.Highcharts("chart") .InitChart(new Chart { Type = ChartTypes.Bar }) .SetTitle(new Title { Text = "Wind speed during two days"…
Chandan
  • 11
  • 2
1
vote
0 answers

asp.net charts Stacked bar chart not getting desired output

I am creating stackedbar chart for may following datatable did search over google for all possible solutions and modified my code but i dont know if my logic is going wrong this is my datatable and this is my Code: private void…
Programmer
  • 63
  • 2
  • 8
1
vote
2 answers

Spline chart smooth corners

I am using Chart control from .NET framework in my project. I have added chart control to the form and configured as shown below. // Add a new series. chart1.Series.Add("1"); var series = chart1.Series[0]; series.ChartType =…
Rocky
  • 405
  • 7
  • 17
1
vote
2 answers

.Net Charting - switching display order of bar charts

Using System.Web.UI.DataVisualization.Charting, I've got data I want to represent as a Bar chart with the first item at the series displaying at the top of the chart, rather than the bottom. E.g. for a series with labels {"A", "B", "C"}, the bar for…
lgaud
  • 2,430
  • 20
  • 30
1
vote
1 answer

ASP.NET Chart Control Formatting

I need help trying to style the asp.net chart control. I have a doughnut chart that I need to style: The background of the doughnut to be transparent so the underlying gradient shows through. I'd like to move the legend to the bottom below the…
Joel Martinez
  • 46,929
  • 26
  • 130
  • 185
1
vote
1 answer

Separate Legends for Multiple ChartAreas in Single Chart

I cannot seem to get my individual subcharts (contained within my single chart object) to host individual legends for their respective data series. I would like to know if this is possible and, if so, what I can adjust in my code to achieve this…
Kashif
  • 865
  • 2
  • 12
  • 33
1
vote
2 answers

ASP:Chart control - databind pie chart from datatable

I've got a datatable with two columns "Status" (string) and "Total" (integer). Status Total Success 34 Missing 2 Failed 10 I want to databind this into a pie chart with each Status per slice but I'm not sure what method of…
iamjonesy
  • 24,732
  • 40
  • 139
  • 206
1
vote
3 answers

How can I display a line chart with only 1 data point

I have a .net program that lets the user select a chart from a dropdown and a data range then queries sql for the data to display the chart, everything is fine unless they pick a date range that would only return 1 value for that particular…
RustyH
  • 473
  • 7
  • 22
1
vote
1 answer

Change ChartImg.axd path

I have an .ascx file embedded in my MVC app using this extension. In the ascx there is a asp:Chart object. When I open my page http://localhost:56854/Machines/Details/1 there is no chart image. Looking at page source I've found that there is…