Hi, Thanks for everthing. I received that error 'Cannot convert from 'MindFusion.Drawing.Brush' to 'System.Collections.Generic.List' when defining the PerSeriesStyle. Do u have any suggest?
@@ilyafarazmehr4564 Hi, I did not much remember the what was the problem about, but I think it was about to coloring the chart. This is the my code for coloring. Hope, it will helps you. lineChart1.Theme = new Theme(); lineChart1.Theme.CommonSeriesFills = lineChart1.Theme.CommonSeriesStrokes = new List { new MindFusion.Drawing.SolidBrush(Color.Red), new MindFusion.Drawing.SolidBrush(Color.Blue), new MindFusion.Drawing.SolidBrush(Color.Purple), new MindFusion.Drawing.SolidBrush(Color.Orange) }; lineChart1.Theme.LegendBorderStroke = new MindFusion.Drawing.SolidBrush(Color.Gray); lineChart1.Theme.LegendBackground = new MindFusion.Drawing.SolidBrush(Color.White); lineChart1.Theme.GridColor1 = Color.White; //lineChart1.Theme.GridColor2 = Color.FromArgb(100, 230, 230, 230); lineChart1.Theme.GridLineColor = Color.LightGray; lineChart1.Theme.GridLineStyle = System.Drawing.Drawing2D.DashStyle.Dash; lineChart1.TitleMargin = new Margins(10); lineChart1.GridType = GridType.Horizontal; ;
You can use web server and the .NET HttpClient class to transfer the data. Raspberry Pi has a built in one. docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-5.0 Another option is to use a COM port but you will need hardware for that. If you need a working sample, please use our discussion board to request it - the link is in the video description.
@@Motivational_hub_98 Thank you for your kind words. Being developers ourselves, we know how hard one can stumble into a problem so we try to provide quality technical support to our developer community. The e-mail is support@mindfusion.eu , you are welcome to use it.
You can use the JavaScript chart to integrate it into a web application using pure JavaScript or React as shown in these videos: th-cam.com/video/Hyx6OEqtlVg/w-d-xo.html th-cam.com/video/9t84vea74fs/w-d-xo.html
Hi , I have implemented line chart using Your assemblies. I have a question how I can get current both coordinates on MouseHover or any Mouse over event..Please reply me ASAP. Thanks in Advance.
Here is a link to download a sample that renders the X and Y data of the point as a tooltip on mouse hover: mindfusion.eu/samples/winforms/charting/RealtimeChartTooltip.zip
@@MindfusionEu Hii is there any option that fix the X coordinates..I know I have 52200 coordinates on X-Axis and Time is 21600sec.. so I just need I have only single screen on X..and there will be only 52200 points.. please help if possible
@@PANKAJBELWALcselover Building a custom combo box in WInForms is a serious endeavour. You will have to do lots of implementation - say, a text box and a list for the drop-down portion implementing events etc. It is much easier to do it in WPF, where you can use templates that can be customized.
A traditional *.msi installer is available from the trial version, which is available from mindfusion.eu/ChartWinFormsTrial.zip. If you just want to show the chart icons in the toolbox in VS, you can right-click on the toolbox, choose "Choose items" then navigate to the location of the MindFusion.Charting.WinForms.dll. This dll, together with the other dll-s needed for a chart to render correctly - MindFusion.Common, MindFusion.Charting and MindFusion.Licensing are in the References folder in the archive for this sample, which you can download from the link in the video description.
So you said that no data is erased and we just scroll through it. Is there any way to prevent it from becoming a ticking bomb 💣? Cause it's only the matter of time before you run out of ram.
The sample's purpose is to demonstrate how the chart can add data dynamically through custom series, always keeping the latest portion of the points within the visible range. In theory, if you have the right appearance settings, the control can handle even a million points with ease - see the Stress Test sample from mindfusion.eu/products/winforms/charting/samples. Of course, you can start to remove points from the series after given time/number, as demonstrated in the Server Load sample, which is in JavaScript, but the API is the same: mindfusion.eu/javascript-demo.html?sample=ServerLoad
@@MindfusionEu thanks for taking the time to answer my question. So Good to see you actually caring about people's problem, keep going strong!❤️ (I subscribed btw)
Yes, you can use the AllowZoom property to zoom the chart by dragging a rectangle on it: www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_WinForms_Dashboard_AllowZoom_0.htm You can show range selecotrs on X and Y axes: www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_WinForms_BiaxialChart_ShowYRangeSelector_0.htm and www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_WinForms_BiaxialChart_ShowXRangeSelector_0.htm, which zoom by resizing the range.
Hello Michele, We have prepared a modification of the sample, which shows the timestamp and the Y-value of a point as a tooltip. Here is the link to the project: mindfusion.eu/samples/winforms/charting/CustomDateTimeSeriesToolTips.zip
Look at the MyDateTimeSeries class in the project. You will find there the method "public string GetLabel(int index, LabelKinds kind)". This method returns the label you want for the given index. In your case you return the string " 5sec/1times" maybe in variations depending on the index. Alternatively, you ca provide date through Series2D, where you can specify the labels with the Labels property (www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_Series2D_Labels_0.htm). Then in the SupportedLabels property for the series you specify that these labels are for the X-axis: LabelKinds.XAxisLabel.
Sure. This chart library supports candlestick charts and you can use the candlestick chart control instead of line chart. You can download a sample from this page: mindfusion.eu/products/winforms/charting/samples The sample is called "Candlestick Chart"
The sample shows how to plot 3 series, you can add as many more as you want. In order to read data from a serial port you need to use the System.IO.Ports.SerialPort class (docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport.read?view=dotnet-plat-ext-5.0). There are two good sample applications on CodeProject that show how to do this: www.codeproject.com/Articles/75770/Basic-serial-port-listening-application and www.codeproject.com/Tips/361285/Serial-Port-Communication Once you get your data as numbers and dates, you can create lists and feed them to initialize new series the way this video shows. If you need help with that, please post a topic on our forum: mindfusion.eu/Forum/YaBB.pl?board=mchart_disc
Look at the TimerEventProcessor method in the code. There we generate random data for demonstration purposes and we invoke the method in regular intervals through timer. Replace the random data with your data and adjust the timer.
Can i replace time on x-axis with my own data coming over some event.. means x-axis and Y-axis data are coming over an event and i want to plot live chart... Is it possible..??
Yes, you can customize the data on the X-axis. If you look in the TimerEventProcessor method you will see that at each method call the MinValue and MaxValue properties of XAxis are changed. The XAxis and YAxis properties of Chart contain a list of settings that define the labels, scale and other properties for an axis: www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?T_MindFusion_Charting_Axis_Members.htm
@@parijat28j You will have to edit a new method to the MyDateTimeSeries class: public void clearData() { values.Clear(); } Then call it on the series in the main class: series1.clearData();
You can try to compile the sample with the assemblies of the beta version for MindFusion.WinForms pack, which will support .NET 5 and .NET Core mindfusion.eu/Forum/YaBB.pl?num=1607601793 We will compile the RealChartSample ourselves shortly and will post a link to download the sample.
Thanks for your video can I ask a question how can we compare value like the max or min values while live chart comes from our sensor? I haven't found anything this topic.
You can use the MinValue www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_Axis_MinValue_0.htm and MaxValue www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_Axis_MaxValue_0.htm properties of the Axis class to adjust the start and end of the axis to fit your data. You can also offset the min and max values of the axis as your data updates.
@@semanurkizil8421 If you need further help, I recommend you write at the support forum: mindfusion.eu/Forum/YaBB.pl It is served by our developers and is convenient for posting code.
Here is a good sample how to read data from a serial port using the System.IO.SerialPort class in .NET stackoverflow.com/questions/16215741/c-sharp-read-only-serial-port-when-data-comes Once you read the data you need to parse it and assign it to the series with series.addValue().
hi. imagine i got 120 database columns each recieving 3x data values per second. would your library be able to handle 24h of data (roughly 90mil datapoints) ?
Download the "Stress Test" sample from the charting samples page: mindfusion.eu/products/winforms/charting/samples Use the same way to provide the data: through interface and scroll with Axis.MinValue/MaxValue to bring the current point into view. The StressTest sample handles two series, just one of them contains 750 000 points, and it renders them smoothly.
If you mean if you can scroll the chart vertically - you can. If you ask if you can pan it with left mouse button click and drag in vertical direction - currently you can't.
Sure. Check out the diagramming library at mindfusion.eu/flowchart-net.html. Samples are available from mindfusion.eu/products/winforms/diagramming/samples
Yes, it is. And the preferred way to do it is to purchase a license :) from mindfusion.eu/buy-winforms-chart.html. There are hefty discounts for freelancers, academia etc.
This one is in C# for WinForms but we have the same charting tool in Java and it has roughly the same API: mindfusion.eu/java-chart.html We also have it in JavaScript mindfusion.eu/javascript-chart.html The C# tool is available for WPF as well mindfusion.eu/wpfchart.html
It is free for academia and non-profit organizations. Among the others, small companies and freelancers use huge discounts: mindfusion.eu/buy-winforms-chart.html
Hi, Thanks for everthing. I received that error 'Cannot convert from 'MindFusion.Drawing.Brush' to 'System.Collections.Generic.List' when defining the PerSeriesStyle. Do u have any suggest?
Have you found an answer?
@@ilyafarazmehr4564 Hi,
I did not much remember the what was the problem about, but I think it was about to coloring the chart. This is the my code for coloring. Hope, it will helps you.
lineChart1.Theme = new Theme();
lineChart1.Theme.CommonSeriesFills = lineChart1.Theme.CommonSeriesStrokes =
new List
{
new MindFusion.Drawing.SolidBrush(Color.Red),
new MindFusion.Drawing.SolidBrush(Color.Blue),
new MindFusion.Drawing.SolidBrush(Color.Purple),
new MindFusion.Drawing.SolidBrush(Color.Orange)
};
lineChart1.Theme.LegendBorderStroke = new MindFusion.Drawing.SolidBrush(Color.Gray);
lineChart1.Theme.LegendBackground = new MindFusion.Drawing.SolidBrush(Color.White);
lineChart1.Theme.GridColor1 = Color.White;
//lineChart1.Theme.GridColor2 = Color.FromArgb(100, 230, 230, 230);
lineChart1.Theme.GridLineColor = Color.LightGray;
lineChart1.Theme.GridLineStyle = System.Drawing.Drawing2D.DashStyle.Dash;
lineChart1.TitleMargin = new Margins(10);
lineChart1.GridType = GridType.Horizontal; ;
How can i send data from raspberry pi or Arduino in to this... Please reply me,asap ❤️
You can use web server and the .NET HttpClient class to transfer the data. Raspberry Pi has a built in one. docs.microsoft.com/en-us/dotnet/api/system.net.http.httpclient?view=net-5.0
Another option is to use a COM port but you will need hardware for that.
If you need a working sample, please use our discussion board to request it - the link is in the video description.
Thank you so much..... ❤️❤️❤️ May allah give you peace. Thanks a lot ❤️❤️❤️❤️❤️❤️
Could please share your mail with me ...
@@Motivational_hub_98 Thank you for your kind words. Being developers ourselves, we know how hard one can stumble into a problem so we try to provide quality technical support to our developer community. The e-mail is support@mindfusion.eu , you are welcome to use it.
Is it possible to transfer as web app ...
You can use the JavaScript chart to integrate it into a web application using pure JavaScript or React as shown in these videos:
th-cam.com/video/Hyx6OEqtlVg/w-d-xo.html
th-cam.com/video/9t84vea74fs/w-d-xo.html
Hi , I have implemented line chart using Your assemblies. I have a question how I can get current both coordinates on MouseHover or any Mouse over event..Please reply me ASAP. Thanks in Advance.
Here is a link to download a sample that renders the X and Y data of the point as a tooltip on mouse hover: mindfusion.eu/samples/winforms/charting/RealtimeChartTooltip.zip
@@MindfusionEu thanks a lot
Hi @MindFusion I need your help. I want to developed a custom combobox control with multiselcet checkBox.. is that possible?if yes plese help me.
@@MindfusionEu Hii is there any option that fix the X coordinates..I know I have 52200 coordinates on X-Axis and Time is 21600sec.. so I just need I have only single screen on X..and there will be only 52200 points.. please help if possible
@@PANKAJBELWALcselover Building a custom combo box in WInForms is a serious endeavour. You will have to do lots of implementation - say, a text box and a list for the drop-down portion implementing events etc. It is much easier to do it in WPF, where you can use templates that can be customized.
how do i install the chart library.
A traditional *.msi installer is available from the trial version, which is available from mindfusion.eu/ChartWinFormsTrial.zip. If you just want to show the chart icons in the toolbox in VS, you can right-click on the toolbox, choose "Choose items" then navigate to the location of the MindFusion.Charting.WinForms.dll. This dll, together with the other dll-s needed for a chart to render correctly - MindFusion.Common, MindFusion.Charting and MindFusion.Licensing are in the References folder in the archive for this sample, which you can download from the link in the video description.
So you said that no data is erased and we just scroll through it. Is there any way to prevent it from becoming a ticking bomb 💣? Cause it's only the matter of time before you run out of ram.
The sample's purpose is to demonstrate how the chart can add data dynamically through custom series, always keeping the latest portion of the points within the visible range. In theory, if you have the right appearance settings, the control can handle even a million points with ease - see the Stress Test sample from mindfusion.eu/products/winforms/charting/samples. Of course, you can start to remove points from the series after given time/number, as demonstrated in the Server Load sample, which is in JavaScript, but the API is the same: mindfusion.eu/javascript-demo.html?sample=ServerLoad
@@MindfusionEu thanks for taking the time to answer my question. So Good to see you actually caring about people's problem, keep going strong!❤️ (I subscribed btw)
@@tiredpotato5539 Thank you very much both for your kind words and for subscribing.🥰
which "NUGETS" package includes "lineChart"?
All types of charts are in the NuGet package.
how did u get lineChart? i have only chart in my visual studio
I think you have not installed the chart library. You can do this through NuGet package manager, please search for "MindFusion.Charting"
Hi,
Can I use zoom in/out on chart?
Yes, you can use the AllowZoom property to zoom the chart by dragging a rectangle on it: www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_WinForms_Dashboard_AllowZoom_0.htm
You can show range selecotrs on X and Y axes: www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_WinForms_BiaxialChart_ShowYRangeSelector_0.htm and
www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_WinForms_BiaxialChart_ShowXRangeSelector_0.htm, which zoom by resizing the range.
hi,
sorry, how can I view the Y value and time of a point when I click on it ?
Hello Michele,
We have prepared a modification of the sample, which shows the timestamp and the Y-value of a point as a tooltip. Here is the link to the project: mindfusion.eu/samples/winforms/charting/CustomDateTimeSeriesToolTips.zip
@@MindfusionEu tank you very much ! Great Job!
if i want datetime appearance 5sec/1times, how can i do it ? :) thanks u!
Look at the MyDateTimeSeries class in the project. You will find there the method "public string GetLabel(int index, LabelKinds kind)". This method returns the label you want for the given index. In your case you return the string " 5sec/1times" maybe in variations depending on the index.
Alternatively, you ca provide date through Series2D, where you can specify the labels with the Labels property (www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_Series2D_Labels_0.htm). Then in the SupportedLabels property for the series you specify that these labels are for the X-axis: LabelKinds.XAxisLabel.
Instead of Line chart, If I want to do it like CandleStick OHLC chart.. Is that possible?
Sure. This chart library supports candlestick charts and you can use the candlestick chart control instead of line chart. You can download a sample from this page: mindfusion.eu/products/winforms/charting/samples The sample is called "Candlestick Chart"
How can I plot multiple data lets say 8 different data from serial port to the live chart? is it possible to do it? thank you^^
The sample shows how to plot 3 series, you can add as many more as you want. In order to read data from a serial port you need to use the System.IO.Ports.SerialPort class (docs.microsoft.com/en-us/dotnet/api/system.io.ports.serialport.read?view=dotnet-plat-ext-5.0). There are two good sample applications on CodeProject that show how to do this: www.codeproject.com/Articles/75770/Basic-serial-port-listening-application and www.codeproject.com/Tips/361285/Serial-Port-Communication
Once you get your data as numbers and dates, you can create lists and feed them to initialize new series the way this video shows.
If you need help with that, please post a topic on our forum: mindfusion.eu/Forum/YaBB.pl?board=mchart_disc
How can I plot the data sending through WiFi from ESP32
Look at the TimerEventProcessor method in the code. There we generate random data for demonstration purposes and we invoke the method in regular intervals through timer. Replace the random data with your data and adjust the timer.
Can i replace time on x-axis with my own data coming over some event.. means x-axis and Y-axis data are coming over an event and i want to plot live chart...
Is it possible..??
Yes, you can customize the data on the X-axis. If you look in the TimerEventProcessor method you will see that at each method call the MinValue and MaxValue properties of XAxis are changed. The XAxis and YAxis properties of Chart contain a list of settings that define the labels, scale and other properties for an axis: www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?T_MindFusion_Charting_Axis_Members.htm
@@MindfusionEu thanks got what i want... one more thing how to clear current chart data for the next cycle chart
@@parijat28j You will have to edit a new method to the MyDateTimeSeries class: public void clearData()
{
values.Clear();
}
Then call it on the series in the main class: series1.clearData();
@@MindfusionEu thanks ...
Is there any possible ways to convert it to .Net Core instead of .Net framework. Kindly mention.
You can try to compile the sample with the assemblies of the beta version for MindFusion.WinForms pack, which will support .NET 5 and .NET Core mindfusion.eu/Forum/YaBB.pl?num=1607601793
We will compile the RealChartSample ourselves shortly and will post a link to download the sample.
Thanks for your video can I ask a question how can we compare value like the max or min values while live chart comes from our sensor? I haven't found anything this topic.
You can use the MinValue www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_Axis_MinValue_0.htm and MaxValue www.mindfusion.eu/onlinehelp/chart.winforms/index.htm?P_MindFusion_Charting_Axis_MaxValue_0.htm properties of the Axis class to adjust the start and end of the axis to fit your data. You can also offset the min and max values of the axis as your data updates.
@@MindfusionEu Thank you for your answer I'll search your link and try to add my code. I hope I can.
@@semanurkizil8421 If you need further help, I recommend you write at the support forum: mindfusion.eu/Forum/YaBB.pl It is served by our developers and is convenient for posting code.
@@MindfusionEu thank you again I'll try it ASAP.
How can I plot using the live updated data from serial ports instead of the random values? Thank you:)))
Here is a good sample how to read data from a serial port using the System.IO.SerialPort class in .NET stackoverflow.com/questions/16215741/c-sharp-read-only-serial-port-when-data-comes Once you read the data you need to parse it and assign it to the series with series.addValue().
hi. imagine i got 120 database columns each recieving 3x data values per second. would your library be able to handle 24h of data (roughly 90mil datapoints) ?
Download the "Stress Test" sample from the charting samples page: mindfusion.eu/products/winforms/charting/samples
Use the same way to provide the data: through interface and scroll with Axis.MinValue/MaxValue to bring the current point into view. The StressTest sample handles two series, just one of them contains 750 000 points, and it renders them smoothly.
Hi,
Can I drag the line chart vertically, or is this only possible for horizontal drag?
If you mean if you can scroll the chart vertically - you can. If you ask if you can pan it with left mouse button click and drag in vertical direction - currently you can't.
Maybe some tips for Diagramming library ? ^_^
Sure. Check out the diagramming library at mindfusion.eu/flowchart-net.html. Samples are available from mindfusion.eu/products/winforms/diagramming/samples
Is it Possible to remove the title of your chart "Mind.Fusion.Charting Windows form trail version".
Yes, it is. And the preferred way to do it is to purchase a license :) from mindfusion.eu/buy-winforms-chart.html. There are hefty discounts for freelancers, academia etc.
what language is this? java or ?
This one is in C# for WinForms but we have the same charting tool in Java and it has roughly the same API: mindfusion.eu/java-chart.html We also have it in JavaScript mindfusion.eu/javascript-chart.html The C# tool is available for WPF as well mindfusion.eu/wpfchart.html
Is it free or trial? thanks
It is free for academia and non-profit organizations. Among the others, small companies and freelancers use huge discounts: mindfusion.eu/buy-winforms-chart.html
I can't focus when you talk to me like I'm in kindergarten 😕
I suppose you can simply turn the sound off.