Real-time Chart in WinForms

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 ธ.ค. 2024

ความคิดเห็น • 73

  • @furkandemirbas8027
    @furkandemirbas8027 11 หลายเดือนก่อน +1

    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
      @ilyafarazmehr4564 8 หลายเดือนก่อน

      Have you found an answer?

    • @furkandemirbas8027
      @furkandemirbas8027 8 หลายเดือนก่อน

      ​@@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; ;

  • @Motivational_hub_98
    @Motivational_hub_98 3 ปีที่แล้ว +1

    How can i send data from raspberry pi or Arduino in to this... Please reply me,asap ❤️

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว +1

      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
      @Motivational_hub_98 3 ปีที่แล้ว

      Thank you so much..... ❤️❤️❤️ May allah give you peace. Thanks a lot ❤️❤️❤️❤️❤️❤️
      Could please share your mail with me ...

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      @@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.

  • @Motivational_hub_98
    @Motivational_hub_98 3 ปีที่แล้ว +1

    Is it possible to transfer as web app ...

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      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

  • @PANKAJBELWALcselover
    @PANKAJBELWALcselover 4 ปีที่แล้ว +1

    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.

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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

    • @PANKAJBELWALcselover
      @PANKAJBELWALcselover 4 ปีที่แล้ว

      @@MindfusionEu thanks a lot

    • @PANKAJBELWALcselover
      @PANKAJBELWALcselover 4 ปีที่แล้ว

      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.

    • @PANKAJBELWALcselover
      @PANKAJBELWALcselover 4 ปีที่แล้ว

      @@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

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      @@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.

  • @aridorjoskowich7283
    @aridorjoskowich7283 4 ปีที่แล้ว +1

    how do i install the chart library.

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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.

  • @tiredpotato5539
    @tiredpotato5539 2 ปีที่แล้ว

    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.

    • @MindfusionEu
      @MindfusionEu  2 ปีที่แล้ว

      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

    • @tiredpotato5539
      @tiredpotato5539 2 ปีที่แล้ว

      @@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)

    • @MindfusionEu
      @MindfusionEu  2 ปีที่แล้ว

      @@tiredpotato5539 Thank you very much both for your kind words and for subscribing.🥰

  • @FerencErdei-Gulyás
    @FerencErdei-Gulyás ปีที่แล้ว

    which "NUGETS" package includes "lineChart"?

    • @MindfusionEu
      @MindfusionEu  ปีที่แล้ว

      All types of charts are in the NuGet package.

  • @jakubborkowski5372
    @jakubborkowski5372 2 ปีที่แล้ว

    how did u get lineChart? i have only chart in my visual studio

    • @MindfusionEu
      @MindfusionEu  2 ปีที่แล้ว +1

      I think you have not installed the chart library. You can do this through NuGet package manager, please search for "MindFusion.Charting"

  • @nreloadn
    @nreloadn 4 ปีที่แล้ว +1

    Hi,
    Can I use zoom in/out on chart?

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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.

  • @mamic75
    @mamic75 3 ปีที่แล้ว

    hi,
    sorry, how can I view the Y value and time of a point when I click on it ?

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว +1

      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

    • @mamic75
      @mamic75 3 ปีที่แล้ว

      @@MindfusionEu tank you very much ! Great Job!

  • @canhnd3502
    @canhnd3502 4 ปีที่แล้ว +1

    if i want datetime appearance 5sec/1times, how can i do it ? :) thanks u!

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว +1

      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.

  • @pankajbelwal4109
    @pankajbelwal4109 3 ปีที่แล้ว

    Instead of Line chart, If I want to do it like CandleStick OHLC chart.. Is that possible?

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      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"

  • @mightyaccelerator
    @mightyaccelerator 3 ปีที่แล้ว

    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^^

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      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

  • @BuddhikaGonagalaSL
    @BuddhikaGonagalaSL 3 ปีที่แล้ว

    How can I plot the data sending through WiFi from ESP32

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว +1

      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.

  • @parijat28j
    @parijat28j 3 ปีที่แล้ว

    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..??

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      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
      @parijat28j 3 ปีที่แล้ว

      @@MindfusionEu thanks got what i want... one more thing how to clear current chart data for the next cycle chart

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      @@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();

    • @parijat28j
      @parijat28j 3 ปีที่แล้ว

      @@MindfusionEu thanks ...

  • @samkamalesh4534
    @samkamalesh4534 4 ปีที่แล้ว

    Is there any possible ways to convert it to .Net Core instead of .Net framework. Kindly mention.

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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.

  • @semanurkizil8421
    @semanurkizil8421 3 ปีที่แล้ว

    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.

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว +1

      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
      @semanurkizil8421 3 ปีที่แล้ว

      @@MindfusionEu Thank you for your answer I'll search your link and try to add my code. I hope I can.

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว +1

      @@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.

    • @semanurkizil8421
      @semanurkizil8421 3 ปีที่แล้ว

      @@MindfusionEu thank you again I'll try it ASAP.

  • @dominicyang6691
    @dominicyang6691 4 ปีที่แล้ว

    How can I plot using the live updated data from serial ports instead of the random values? Thank you:)))

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว +1

      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().

  • @_skiel
    @_skiel 4 ปีที่แล้ว

    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) ?

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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.

  • @pavleradojkovic8764
    @pavleradojkovic8764 4 ปีที่แล้ว

    Hi,
    Can I drag the line chart vertically, or is this only possible for horizontal drag?

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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.

  • @brarord8401
    @brarord8401 5 ปีที่แล้ว +1

    Maybe some tips for Diagramming library ? ^_^

    • @MindfusionEu
      @MindfusionEu  5 ปีที่แล้ว +1

      Sure. Check out the diagramming library at mindfusion.eu/flowchart-net.html. Samples are available from mindfusion.eu/products/winforms/diagramming/samples

  • @PANKAJBELWALcselover
    @PANKAJBELWALcselover 4 ปีที่แล้ว

    Is it Possible to remove the title of your chart "Mind.Fusion.Charting Windows form trail version".

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว

      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.

  • @fahrulrozi409
    @fahrulrozi409 3 ปีที่แล้ว

    what language is this? java or ?

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      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

  • @tatthanhluu2135
    @tatthanhluu2135 4 ปีที่แล้ว

    Is it free or trial? thanks

    • @MindfusionEu
      @MindfusionEu  4 ปีที่แล้ว +1

      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

  • @JackSolimanUSA
    @JackSolimanUSA 3 ปีที่แล้ว

    I can't focus when you talk to me like I'm in kindergarten 😕

    • @MindfusionEu
      @MindfusionEu  3 ปีที่แล้ว

      I suppose you can simply turn the sound off.