How are we doing? Please help us improve Stack Overflow. Take our short survey

Questions tagged [microsoft-chart-controls]

The tag has no usage guidance.

microsoft-chart-controls
Filter by
Sorted by
Tagged with
1 vote
0 answers
49 views

How can I generate a stacked bar chart with a for loop using data queried from a database

I've written some code that should loop through the dates in a selected date range within a data table and generate a stacked bar chart. I took a look at: multiple horizontal stacked bar charts using ...
Zay's user avatar
  • 11
0 votes
0 answers
35 views

How to make a chart in a windows form which takes the x and y axis from two comboboxes in another form. (The comboboxes has db column names as items)

I want to make a windows forms application with two forms: form1 and form2, form2 displays a 3D chart with a local SQL server connection to make a database as it's DataSource. I gave two combobox in ...
user18568746's user avatar
1 vote
1 answer
867 views

How to show or hide cursor on WinForms MS chart, C#

I have to use System.Windows.Forms.DataVisualization.Charting.Chart in my project I created hair cross pair of System.Windows.Forms.DataVisualization.Charting.Cursor() on a chart; I would like to show ...
Igor K's user avatar
  • 31
0 votes
2 answers
2k views

How to display start and end points x-axis label in a chart in c# windows forms?

I am just a rookie at C# windows forms application. I am trying to plot a chart from a data table using the function this.chart1.Series[0].Points.DataBindXY(dt.DefaultView, "tms", dt.DefaultView, head[...
Diode's user avatar
  • 68
0 votes
1 answer
274 views

ASP.NET 4.0 Chart Control Broken Image Link

I have Microsoft Chart Controls set up in a Web Forms project. The chart is rendering as a broken image link. The page I'm attempting to add the chart control is in a location with this path: http://...
IrishChieftain's user avatar
0 votes
1 answer
747 views

Chart C# add Data Point in cubic bezier curve

I have written a method to create a Bezier curve for rendering in a Chart control. I have a collection of data points which I retrieve from another method. I would like to form the Bezier curve on my ...
SamSingh's user avatar
0 votes
0 answers
94 views

Custom X-axis label formatting in Winform Chart Control

I am plotting graph with numeric value on Y axis and Date time value on X axis in windows forms chart control. I am setting X axis scale "IsLogarithmic" to true and i am getting the graph as shown in ...
Nimit Vachhani's user avatar
2 votes
1 answer
60 views

How to save C# Control plus extra text to disk?

I have a C# program that is a console application, but makes use of a Chart object from System.Windows.Forms.DataVisualization.Charting, without attaching the Chart to a Form. Basically I need to ...
tj94's user avatar
  • 61
0 votes
0 answers
163 views

Microsoft chart with chart type is Column

I tried to decrease space between space between columns and also wanted to decrease width of columns, but I was only able to adjust width of columns not space between columns. please help for ...
Gotu31's user avatar
  • 1
2 votes
1 answer
1k views

How to use System.Web.Helpers.Chart in DLL

I want to use the System.Web.Helpers.Chart in my project. I simply tried the example from the docs: https://learn.microsoft.com/en-us/aspnet/web-pages/overview/data/7-displaying-data-in-a-chart var ...
Vivendi's user avatar
  • 20.6k
0 votes
2 answers
2k views

Line Chart with different colors on a different interval at x-axis fill in same series?

I created a Line Chart control in Windows Forms. I divided the ChartArea, AxisX into four intervals but I want to apply back color (unique color) to each interval. Can someone help me on this?
Appalaraju's user avatar
2 votes
2 answers
302 views

ASP.NET MS chart control: Data points insertion error. Only 2 Y values can be set for this data series. Parameter name: dataSource

I'm getting this error on my MS Chart control: Data points insertion error. Only 2 Y values can be set for this data series. Parameter name: dataSource It occurs on line chartPriceHistory_STATIC....
Adam's user avatar
  • 6,262
0 votes
1 answer
327 views

ASP.NET chart control background image: URL is not a valid virtual path

I'm trying to set a background image on my ASP.NET (built-in) chart control to an image located on: http://www.example.com/images/logo.png I can access this image in my browser. But I'm getting this ...
Adam's user avatar
  • 6,262
0 votes
1 answer
2k views

Display all points in chart control on a windows form in C#

I am trying to display several points with x and y coordinates between 0 and 200 in a chart control on a Windows form app in C#. My code looks like the following: using System; using System....
Adi's user avatar
  • 75
0 votes
0 answers
211 views

Data and Series label not showing on WinForm Chart control

I am having a problem getting the default WinForms Chart control to work. I have a single chart with a single area. In this area, I want to display three (3) series whose labels are on a single legend....
Lord of Scripts's user avatar
0 votes
0 answers
166 views

User Control Chart does not display data points

I've implemented a User Control class to extend the functionality of the Chart class. This chart will have data added to it in real time. The User Control class creates a ChartArea, and adds it to the ...
Sean Martin's user avatar
0 votes
1 answer
608 views

Inherited Chart control: How to change default values and behaviour

I'm trying to implement a scrolling line chart (similar to the old chart recorders) by inheriting from the chart control. To do this, I need to do two things: Change default properties of various ...
Sean Martin's user avatar
0 votes
1 answer
343 views

Controlling Microsoft Charting Controls focus

I am currently using MSCharts in one of my windows forms. One of the quirky things about MSCharts is that you cannot trigger a MouseWheel event in the chart unless the chart has focus. To combat this, ...
john's user avatar
  • 139
1 vote
1 answer
1k views

Grouped bar chart with WinForms Chart Control [closed]

I can create with MS Excel Grouped bar chart like this. I need to create the same Chart via WinForms Chart Control. I try this code but it seems like I need more sophisticated solution to build ...
NoWar's user avatar
  • 37k
0 votes
0 answers
324 views

how to achieve drill down functionality in asp.net mvc project using asp.net chart control

I have created a chart in asp.net mvc project.. Controller looks like: public ActionResult ApplicationPieChart() { var _context = new chart(); ArrayList xValue = new ...
Deepshikha Sharma's user avatar
0 votes
1 answer
328 views

ChartControl - How to plot a line on X Axis (x - fixed coordinate, y - infinity)

I'm developing a C# winforms application in which I want to plot lines on X axis such that the X coordinate is a fixed value, but there is no Y coordinate specified. Something like this: Can this be ...
zeuschyant8's user avatar
0 votes
1 answer
3k views

Add images on chart control

I'm not sure if I titled the question correctly so it would be better if I explained what I'm trying to do. I want to add some images on chart control and around their to draw graphics. I want to ...
Mister Black's user avatar
0 votes
1 answer
41 views

How to make mscharts y axis always go to a specific value

For reasons I cannot fathom, a client wants the chart to always go to 1000. Regardless of whether the maximum data point is 300 or something and usually goes nowhere near 1000, they want to see the ...
user609926's user avatar
3 votes
1 answer
2k views

Winforms chart: how to enable background color gauge

I'm looking for a way to enable custom background color gauge in the Winform chart control library. Here is an example: See the green, yellow, and red color in the background? Now, I need is a way ...
Noodles's user avatar
  • 187
0 votes
1 answer
56 views

Tsql Sorting an ORDER BY with WHERE

I am working on a .net chart control project and am new to sql. I want to be able to sort the date which is from a textbox input. SELECT Employee.[First Name] + ' ' + Employee.[Last Name] AS '...
Albin Vinoy's user avatar
0 votes
1 answer
126 views

Microsoft Chart Control: MultiSeries and zoom

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms.DataVisualization.Charting; using ...
Roman's user avatar
  • 1
-1 votes
1 answer
1k views

ASP chart StackedColumn100 add percent symbol (%) on values

I have this chart (using Chart control build-in on .NET): How do I add percent sign (%) behind of all values (for example 44 => 44%, 56 => 56% and so on) Edit (after tried jstreet's sugesstions in ...
Ronaldinho Learn Coding's user avatar
1 vote
1 answer
502 views

Get all DataPoints within a 'rubber-band' rectangle in a Chart control

I have an X-Y plot in a .NET 4.0 WinForms chart control. I am trying to implement rubber-band selection, so that the user could click and drag the mouse to create a rectangle on the plot, thus ...
Spry's user avatar
  • 698
2 votes
2 answers
636 views

Modify a Custom Property with a Custom Color

Happy Holiday I wish to add a Custom Color with Transparency to a Custom Property in MS Chart Control on the Candle Stick Chart. I'm getting stuck with the color in quotes. Nothing has worked for ...
Greg's user avatar
  • 85
2 votes
2 answers
274 views

Creating Trending line on bar chart

I have a Bar chart on Kentico reporting section. And I know Kentico uses Microsoft Chart Controls. Microsoft Chart controls have the capability of creating a trending line on Bar graph - But I do see ...
marifrahman's user avatar
0 votes
2 answers
875 views

Changing graph on radio button selection change - ASP.NET MVC

I use Microsoft chart and I have below line of code to get chart. <img src="@Url.Action("GetChart")" alt="Bar Chart using MVC" class="img-responsive" /> I have a radio button list and upon ...
techspider's user avatar
  • 3,420
1 vote
1 answer
561 views

How to plot TEMA indicator with Microsoft Chart Control

I've added two series: Series1 (CandeleStick), Series2 (Line). I've added points and the FinancialFormula: public Form1() { InitializeComponent(); chart1.Series[0].Points.Add(...
Eugene  Maksimov's user avatar
0 votes
0 answers
219 views

asp.net chart control shows gap between series

I have a chart which dynamically generates series. The series represent people. and Im using only the Yaxis in a Stacked bar chart to generate for each day of a month how many people have data. My ...
SubqueryCrunch's user avatar
4 votes
1 answer
4k views

Percent value in y axis of Column Chart Microsoft chart control

I am trying to get Column charts, where I need to have percentage value in y axis and should recalculate and scale. I have seen some suggestion to assign minimum and maximum value ( chart.ChartAreas[...
M.S's user avatar
  • 288
1 vote
1 answer
938 views

SaveImage of ChartControl without display It in the screen

I wanna save a ChartControl to an Image without display it in the screen. var theChart = new Chart(); var theSeries = new Series("values"); theSeries.IsVisibleInLegend = false; theChart.Series.Add(...
Julian50's user avatar
  • 2,502
0 votes
1 answer
127 views

X-Axis has alternate interval in asp.net

I am using Microsoft Chart , Spline chart type . And I have months on X-Axis but it shows alternate months ie; January , March, May....etc. But I need to show it in continuation. Though it has marker ...
mark's user avatar
  • 619
1 vote
1 answer
338 views

MSChart - RangeBar Series Label alignment

I have a RangeBar chart that looks like the image below. I want to align the Series Labels so that they appear at the top of the bar instead of centered. Things I've discovered: SmartLabelStyle ...
Jez Clark's user avatar
  • 383
1 vote
0 answers
194 views

Microsoft chart control - DataPoint is shown as PlottingArea

I am trying to display a series containing several values. I mouse hover a 'DataPoint' on chart to display a tooltip with some details. But I am having a serious problem here. The first value on ...
zah33r's user avatar
  • 46
0 votes
1 answer
2k views

Google Charts VS Microsoft Chart Control [closed]

I am working on a project in which I have to display some dynamic graphs. I am new into web development and I am confused between Google Charts and Microsoft Chart Controls. I am using razor syntax ...
Bint-e-Adam's user avatar
2 votes
1 answer
4k views

Microsoft WinForms Chart Control - Set Position of Y-Axis Label

I have a Y-Axis Label as shown here: I am trying to position the label closer to the chart, is there any facility to do this? I could add a Winforms Label and position it accordingly but just in ...
user3329538's user avatar
0 votes
1 answer
186 views

Microsoft WinForms Chart Control - TitleBox

I am looking to produce this type of TitleBox in the Microsoft WinForms Chart Control, so that the titlebox is docked to the top of the chartarea. Is there any way to position the standard titlebox ...
user3329538's user avatar
0 votes
1 answer
874 views

How to change the order of SeriesType legends in MS Chart Control?

I'm trying to change the order of legends (series type legend) in code behind. I have already tried to use the LegendItemOrder property as shown here. But this didn't work out for me. I also tried to ...
user avatar
0 votes
0 answers
127 views

ASP.NET Chart. Binding 2 String Columns to XValueMember? (First + Last Name)

DB Query returns First and Last name as separate columns: The control is bound to First name only right now. What's the syntax to bind the series to First + Last name? I know I can do it in the ...
Tomas Beblar's user avatar
1 vote
1 answer
1k views

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. ...
johnatann's user avatar
  • 145
1 vote
0 answers
2k views

How use chart control in .net 3.5 visual studio 2012

I am working on visual studio 2012 .NET 3.5 web application and am trying to use the Chart Control. I have installed mschart.exe and tried to drag and drop the DLL into the toolbox and also tried ...
user3675866's user avatar
0 votes
0 answers
288 views

Microsoft Chart Control X-Axis

I have a Microsoft Chart with a single Series that is defined as ChartType = SeriesChartType.Line. The X-Axis is a DateTime value, and all is working as expected except the last point on the chart. It ...
brsfan's user avatar
  • 482
0 votes
2 answers
8k views

Asp.net Chart control multiple series binding

I have got following dataset which is returned by SQL Server: Group Name Month Total ORDER Group-India Apr 80 Group-US Apr 70 Group-Europe Apr 60 Group-...
user3657339's user avatar
0 votes
0 answers
492 views

Rangebar series not centered

I am working with a RangeBar Chart in a c# form app. When I add the series to the chart they do no line up correctly. When I change the "DrawSideBySide=false" it works fine, but I need some of the ...
user3642115's user avatar
0 votes
1 answer
826 views

Line type of series in MS Chart control

When MS Chart control has multiple series, a different color is assigned each series automatically and by default. If I select the charttype as fastline and add two series, blue and orange plots are ...
Siha's user avatar
  • 47
0 votes
1 answer
3k views

Can we zoom IN zoom OUT chart image using JQUERY

In my ASP.NET applicaiton, i have used microsoft chart control and generated Doughnut and Bar charts. Now, i need to implement ZOOM IN and ZOOM OUT feature. I could not found any default way in ASP....
dsi's user avatar
  • 3,319