showing differences in chart lines C# - c#

so using windows forms chart it is possible to create different style lines, such as dashed or dotted, like this:
chart1.Series["series1"].BorderDashStyle = ChartDashStyle.Dash;
What my issue is, is that these look like solid lines in my graph, because of how many data points there are in my graph (1024). The problem is that the dashes are grouped so close together it is impossible to discriminate from a solid line without zooming in. Is there a way to fix this without getting rid of some data points? Thanks for reading.

Related

c# winforms show a 'totals' graph behing segmented category data

I'm trying to put together a graph, that has sub category column graphs drawn infront of a total column graph.
Something like this
Anyone offer any ideas how to approach this, I have tried a few failed ways.
I have tried to make two ChartAreas in the same Chart, but they rendered the graphs separately on top of each other
I've also tried having 2 seperate charts overlapping each other and setting the background to transparent. That appears to see through both graphs.
chart2.BackColor = Color.Transparent;
chart2Area1.BackColor = Color.Transparent;

Plot Point in ZedGraph C#?

Well this is my question, I have a ZedGraph, now I want to put some points in the ZedGraph, I have my simple class Point wich it have, the X & Y values, fist I check this question, but not answered, at the moment don't work, anyone know how to put just a simple point, my goal is drawing shapes like this one Secciones but I dont know how make this
I believe ZedGraph is the wrong tool for what you want to achieve. You should be using GDI+ drawing do draw your points, lines, rectangles and other shapes. It forms part of C#.NET.

Line not visible in zedgraph - How to create overlapping filled line graphs using zedgraph such that all the curves and their fills are visible?

I am creating a line graph using zedgraph which contains multiple lines and all of them are filled with labels displaying the data points. There are times when one of the lines is not visible at all but only the data point labels for that line are visible. I think this happens when the data is such that one line completely envelopes the other in terms of area covered and the order of rendering for the lines is such that the inner line is rendered before the container line. This I think is making the inner line invisible except for its data point.
So my question is:
How using zedgraph can I ensure that all portions of the filled curves along with their lines are rendered properly irrespective of their filled overlapping areas being subsets of each other and the order in which the curves are rendered?
How using zedgrapgh can I force the overlapping portions of the curves to display a fill color that is a resultant of the individual fill colors for the curves like in the chart image I found on google charts demo page below?
SOLVED!! - The only thing to do was add the alpha channel transparency to my line curve fills and everything else gets sorted automatically. Hope this helps someone.

How to get smooth lines in a WPF Toolkit Chart LineSeries?

I'm creating a chart using WPF toolkit. The chart has some lineseries in it. I want to modify the lineseries so that I have smooth lines instead of straight lines. Is that even possible? I've been googling the problem for a while and have not come up with the answer.
Any help would be much appreciated.
If there is no built in series which will achieve what you want, maybe you can create your own which draws splines rather than regular lines.
A quick Google points to this SplineSeries, which may be a good starting point for you.
Perhaps you can look into a Moving Average to smoothen the line.
eg:
chart1.DataManipulator.FinancialFormula(FinancialFormula.MovingAverage, "10", series1, series2);

printing solution for .NET front end, MYSQL backend

i will need to print an "x" according to the coordinates given to me from one of the tables in my database. im probably gonig to use c# to connect to mysql.
i will probably have a winform that is 8.5 x 11 inches (The size of a regular sheet of paper) and i will populate the entire thing with labels of "x" and they will be invisible.
each individual table record will have the coordinates of those labels which should NOT be invisible
the form for every record will show and will print. the printing will be on top of a paper that is actually a physical application itself.
the problem:
how to fill out a physical application using data from a mysql database. (dont tell me that i should be printing the entire app from scratch, the reason this is not possible is because the form is actually TRIPLE paper width (white, yellow, and pink copy), so i cannot print the entire app from scratch, i have to print on top of it.
the question: how do i print "x" at specified regions? is my solution the best way to go or is there a smarter approach?
in case you have no idea what i am talking about, here are some related questions:
ms-access: designing a report: printing text on specific x,y coordinates
Conditional formatting in Access
While labels would offer you the ability to make an X show up I don't feel that having a bunch of hidden labels is the best way.
Does the "application" represent some kind of form? Are you looking to "check-off" boxes using x's and then print this?
I may suggest using GDI+ (drawing) vs using labels.
Consider the following:
Locate the coordinates for your boxes. Then use the drawstring method within an overridden onPaint event-handler for your form or for the panel which may represent your form's canvas.
This article talks about GDI+ and how to draw text as graphics.
http://www.functionx.com/vb/gdi+/objects/fonts.htm

Categories