I have a chart with multiple chart areas. There is also a button that when pressed deletes ( chart1.ChartAreas.Remove(chart1.ChartAreas[select]);) a selected chart area, as you can see below :
How can I resize the other chart Areas in order to take over the free area when one chart area is deleted?
Related
I am developing a C# WinForm application.
I am using cartesianchart from LiveChar.Winforms.I want to do a scrollable graph.
I added too many items on chart and the chart fit all items to area. I want to put scroll bar bottom of cartesianchart thus items not to be stuck viewing area.
I have a "layout" database which has records for a grid of buttons: the top, left, width & height values are kept small and I multiply these upon drawing them to the form to scale them up. The grid makes up the full form and the form is full screen however my scale factor is set for the form size I created them at. I'd like to be able to determine the values to scale them by in order for me to scale the button grid to any size window regardless of aspect ratio with the grid still taking up the full screen.
I'd like to avoid docks, anchor's and table layouts as I believe this adds complication as the form cannot be resized once shown anyway.
I have looked at the Control.Scale Method mentioned in this answer but I'm not sure how to apply it.
Instead of calculating values use TableLayoutPanel control.
Add TableLayoutPanel to the form
Set TableLayourPanel.Dock = Fill
Add columns and rows as you need
Set columns and rows SizeType to "Percent" and percent values to fit
your needs.
Then add buttons into cells you have created
Set Button.Dock = Fill to fill whole cell.
In runtime when form's size will change, size and position of the buttons will changes too.
I have a Area Chart in my web page made using the ASP.NETS AJAX Control Toolkit Area Chart Control. There seems to be a lot of white space/padding in between the actual chart and the black likes around the border of the chart area. Does anybody know how to remove or reduce the amount of white space/padding. See image below:
I am having an issue when trying to set up zooming into a chart area. I have made multiple charts before where the user selects an area and it zooms in normally, but in this particular application I have 3 chart areas in one chart control and when I make a selection in one chart area, all of the other chart areas zoom to that area as well.
You can see that all three chart areas are selected when I am only selecting the first one.
The only code I have for each one of these chart areas is
Chart1.ChartAreas[i].CursorX.IsUserSelectionEnabled = True;
Chart1.ChartAreas[i].CursorY.IsUSerSelectionEnabled = True;
Chart1.ChartAreas[i].AxisX.Zoomable = True;
Chart1.ChartAreas[i].AxisY.Zoomable = True;
NOTE: I have this set for each individual chart area, I just didn't want to write too much.
So I was wondering if anybody knows of any possible way to make each individual chart area zoomable with a selection of the mouse and not zoom the other 2 chart areas when I make a selection in one?
Thank you so much for your time and consideration
I found out what the issue was and why all the chart areas were zooming at the same time --
I had Chart.ChartArea[i].AlignWithChartArea set to other charts to make the visuals a bit better. Apparently that binds the zooming as well for some reason.
I am using RDLC reporting for showing pie chart in my C#.net application.
I need to show values in percentage form on the pie chart.
What expression should be used in order to show desired data?
Please help me...
right click on the labels of the chart, In the general tab choose #PERCENT for the label data
To put the % value on each pie chart slice do this (as shown here):
On the design surface, right-click on the pie and select Show Data Labels. The data labels should appear within each slice on the pie chart.
On the design surface, right-click on the labels and select Series Label Properties. The Series Label Properties dialog box appears.
Type #PERCENT for the Label data option.
Result:
If you are dealing with mutliple data fields feeding your pie, check out this.
Before you right click on the pie chart fill the data fields and series fields first else you will not see show data labels.