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);
Related
my task is to draw a flexible number of digital signal realtime-data in SciChart.
Due to the nature of this signals they are between 0..1. I want to have them stacked as in the SciChart example found at https://www.scichart.com/example/wpf-chart-example-vertically-stacked-yaxis/.
But with a dynamic grid template inside the YAxesPanelTemplate. What ever I try, there are no YAxes drawn.
I'm using a GridExtension which is very close to the one found here:
https://rachel53461.wordpress.com/2011/09/17/wpf-grids-rowcolumn-count-properties/
refernced from this answer
https://rachel53461.wordpress.com/2011/09/17/wpf-grids-rowcolumn-count-properties/
Any help is highly appreciated
Cheers
Martin
my solution might not be ideal, but it is almost working for me.
Since I’m developing the code for a customer, I’m not allowed to post code by NDA, but I can give my theoretical approach.
specify the number of YAxes in VM
use this to build the grid inside ItemPanelTemplate and bind with DynamicResource (see example in link below)
to do so, use class from this blog and adopt as needed. I build
a specialized class for my use-case
bind to the SizeChangedEvent of RenderSurface Iterate the axes from
YAxes,calculate height per axis and set it.
inside the same loop don’t forget to set the row by using
Grid.SetRow(axis, rowIndex)
This approach is from my point of view not the most performing, but the only I was able to discover from the SciChart docs.
The last task which I’m facing, is to get the height of the chart portion of the RenderSurface, as the height given in SizeChanged is of the full height including YAxis and other stuff drawn.
Maybe someone from SciChart (#Dr. ABT - just maybe) can help out on this last task?
Hope this helps someone else too.
Cheers
Martin
I am using oxyplot. I need a LineSeries combined with a HeatMap.
I allready found the ScatterSeries that kind of does what I need:
But I don't want single circles - i want a line.
Something like this would be perfect:
Can I achieve this with oxyplot and how?
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.
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.
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.