I am currently developing an application in C# using the NPlot Charting Library.
I want to have a 2 bar charts side by side for each label across the X axis instead of them being stacked on top of each other.
Is this possible with Nplot, I couldn't find anything on Google but the Nplot documentation implies that you can have them side by side instead of stacked.
Thanks for any help you can provide.
Found out you change the bases offset i.e.
HistogramPlot myPlot = new HistogramPlot();
myplot.baseOffSet = 0.3f
Related
There doesn't seem to be any method in EPPlus for changing the orientation of tick labels on a chart.
I can see it's possible to make changes by using the XML properties exposed by ChartXML but documentation for this seems to be thin on the ground. Can anybody help me out here, please?
Thanks
John
Newer version of Epplus (from 5 onwards I think) support this - you can use Axis.TextBody.Rotation and set it between -90 and 90.
chart.XAxis.TextBody.Rotation = -90;
I am creating a web application using c#. I have four values(or series) volt,current,wh and temperature which I will have to plot in a chart control against time which(time) will be shown in x-axis. All things done correctly. But the range of the values are different like one is in range of more than 1000,another lies between 0 to 10,another shows negetive value,etc. I want to create different y-axis for each series.I had created two y-axis which is a property of series(YAxisType),primary and secondary. Is it possible to create multiple y-axis?I had searched in google but didn't get any proper answer. Please help me.
You can only use 2 y-axis(primary and secondary)
But you can create a few chart areas within one chart control
Or you can add a button that will hide one chart control and show another(with others 2 axis)
I would like to implement the The Straight line (Piece-wise-fit) chart in MS Chart.
I have known points on X axis [Minimum = 1.4 and Maximum = 2.2]. I have put all these points on line chart.
Now the requirement is that How can I know the Points on X Axis [Minimum = 1.3 and Maximum = 2.3] with Straight line (Piece-wise-fit).
can anybody know about this chart then let me know How can I implement this chart.
Is it require to implement any algorithm or anything else ?
see attached screen which I have implemented yet.
I have correct the problem by myself.
I have used MS Chart Best fit Curve (Spline) in Chart Type.
Hi I am using Ms chart control in winforms application for displaying values according to dates
I need to change the x-axis label values(Dates) direction horizantal to vertical
I have searched so many properties but i did not find any solution for this.
Any one help me on this problem
Many Thanks ....
As I understand your question - you are asking how to rotate the chart label to display vertically.
You can rotate the x-axis label as follows:
chart1.ChartAreas[0].AxisX.LabelStyle.Angle = -90;
This assumes you have associated your series with the first chart area, which is the default without modification when using the Winforms designer.
The following images shows how the chart would look before the code above is applied, the second image shows how it appears after the code is applied.
Let me know if this is not what you are trying to do and I will post an updated answer.
Before rotation
After Rotation
Edit: Another answer added after my initial post mentions in certain situations it may be important to set chartArea1.AxisX.IsLabelAutoFit = false;
If you have not already done so, get the chart samples from microsoft:
http://archive.msdn.microsoft.com/mschart
Then check the section on Labels
Chart Features > Labels
To answer your question directly, set the angle in LabelStyle, and don't forget to disable autofit
chartArea1.AxisX.IsLabelAutoFit = false;
chartArea1.AxisX.LabelStyle.Angle = 90;
I was perusing the asp.net chart control's sample website, and came across something in the pie chart gallery. There was 3 pie charts, "stair stepped" on top of each other. I starting using this control for a financial services application, and would like to replicate this effect. It looks like this:
3d Stair stepped Pie Chart http://www.freeimagehosting.net/uploads/87a5caabca.png
I'd post some code on what I've accomplished so far, but I have no idea where to start with this. I'm guessing maybe I'd have to create the 3 charts, and offset their axes, am I off base here? Any help would be appreciated.
You need to create 3 seperate series and assign them to seperate chart areas.
The chart areas need to stepped down the page using position.x and position.y
Other tricks include disabling the legend for the second and subsequent series.
To get the transparency affect you need to work at a data point level in the series. Note the Ownership data point is not transparent but the renting and leasing data points are.