I'm using MSChart in ASP.net to render simple column charts. How can I define and show the names of the x-axis and y-axis on the chart?
You should go through the Microsoft Chart Samples Environment and find it yourself.
Related
I am using Donut Chart Breakdown Example to display some dynamic data in QT version 5. But in some case labels are getting overlapped, as in the screenshot given below. I there any way to avoid this?
I want to be able to click one bar of the gantt chart created in vistime plot to see the details of all the related events of that category. Is that customization possible with vistime? Also, how can I add a vertical line in the plot indicating the current date like other gantt charts have?
Hi I need to show the String titles below the bars of my Bar Chart created from Core Plot. I have many places in Core Plot framework but didn't find how to put text below the bars?
I need to show titles just like shown in the attached image.
Please suggest!
There are a couple of ways to make axis labels that are not numeric representations of the data value.
If you are plotting categorical data, you can set the scale type of the plot space to show categorical labels and return the text of the label from the datasource for the plot value (e.g., the bar location for a bar plot).
From the "Vertical Bar Chart" demo in the Plot Gallery example app:
// setup
[barPlotSpace setScaleType:CPTScaleTypeCategory forCoordinate:CPTCoordinateX];
If you're not plotting categorical data or you just need more control over the labels, you can create custom axis labels. Set the axis labelingPolicy to CPTAxisLabelingPolicyNone, create a set of axis labels, and assign it to the axisLabels property. There are several demos in the example apps including the "Composite Plot" demo in the Plot Gallery example app. With CPTAxisLabelingPolicyNone, the tick marks and labels are independent, so if you want tick marks, you also need to set the majorTickLocations and/or minorTickLocations.
I use a Pie chart. I want it to display the percent or the values on the chart. How can I do this?
It is basic asp.net charting controls
Thanks
Do this:
chart.Series["Default"].Label = "#PERCENT{P2}";
chart.Series["Default"].LegendText = "#VALX";
More info is available here:
How to: Display Percentage Values on a Pie Chart
I have basic bar charts showing some value (1 value per chart) on each day. The charts are rendered using standard MS ASP.NET charts.
Now I would like to add a trend line. Has somebody done such thing and would be so kind to give me some hints how to approach this task? I know how to add a line to the chart, just would like to know whether someone already did such thing.
If I have understood the question correctly, you want to show a line graph using the same values that each bar is drawn.
You can do this by adding one more series with chart type as line to the same chart area.
Make the Y-axis for the series as secondary and keep X-axis as primary (to keep same X-axis values for both Bar & line graph). Or you can also make X-Axis of this new series as Secondary (this will show labels on top of chart area) .