C# Tutorial - Live Chart/Graph in C# Winforms Application | FoxLearn

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

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

  • @christanbardemorilla7365
    @christanbardemorilla7365 5 ปีที่แล้ว

    Keep it up FoxLearn.Thank you for this video.

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      You're welcome. Thank you !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

    • @Digital-Chetan
      @Digital-Chetan ปีที่แล้ว

      again check your dataset name@@WILLFACTOR11

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

    Good to learn C#. Need how to code data in dgv and based on dgv, how to populate chart using Tabs control.

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

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

    foreach (var obj in data.Product)
    my data is underlined red, any reasons why

  • @billyjones736
    @billyjones736 5 ปีที่แล้ว

    what do i change if i want to display text in the first column and int values in the second column???

  • @adamzbudniewek4704
    @adamzbudniewek4704 6 ปีที่แล้ว +1

    Thank you so much ! love you in the future of countinue it - you can show how to learn machine to detect own picture for example detect logo fox learn on pictures :) You forgot about that :(

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      I'll try to research it. Thank you !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @realprof609
    @realprof609 5 ปีที่แล้ว

    Is visual studio 2012 can use and download live chart? Because i cant download on it

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

      You can download it directly from the nuget.org instead of Manage Nuget Packages

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @DD-rz6wl
    @DD-rz6wl 5 ปีที่แล้ว +2

    plss show how to use other charts, like cartesian

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

      OK. Thank you for your suggestion. Let me try to research !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @milinddabhade5280
    @milinddabhade5280 6 ปีที่แล้ว +1

    Hello
    i need help
    how to released memory after form closed c#
    i want released the memory winch allocated by form can you make one video on that
    thanks in Advance

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @bojidarkamenski3432
    @bojidarkamenski3432 6 ปีที่แล้ว

    Again nice video!!!! Congrats for your work!
    Can you help with this problem: Unclosed quotation mark after the character string "

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Can you post the line error. thank you !

    • @bojidarkamenski3432
      @bojidarkamenski3432 6 ปีที่แล้ว

      @@foxlearn This is my pastebin code- pastebin.com/8EA1HaRR. So the program is simple I have created 3 texboxes - textBoxUsFb I read the password, textBoxPssMailF I read the email, if you login successfully in textBoxPasFB appears a short string from my database.I run the form without problems but when I click the button, a error box appears and shows- Unclosed quotation mark after the character string " . I choose to ask you because I learn from your channel, the best channel ever, and I know you understand what you create. It is not important but if you have time please help. I have searched in a lot of forums but I can find nothing :(. Thanks in advance!

    • @simontheconner
      @simontheconner 6 ปีที่แล้ว +1

      @@bojidarkamenski3432 You are missing a quote after password =
      SqlCommand cmd = newSqlCommand("SELECT * FROM tbl_Login WHERE Password = ' "+ int.Parse(textBoxUsFb.Text) + "'", con2);

    • @bojidarkamenski3432
      @bojidarkamenski3432 6 ปีที่แล้ว +1

      Ohh my.... I have not seen it, thank you very much! Thank you! Thank you! I wish you happy new year, if it is not late! 😃

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @luiseduardo2567
    @luiseduardo2567 5 ปีที่แล้ว

    My Chart is black on execution but the information will loaded, how a fix that.

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      What error are you getting?

  • @abuhuzaifa4395
    @abuhuzaifa4395 5 ปีที่แล้ว

    Not Working Man I Dont Know Why
    SeriesCollection Series = new SeriesCollection();
    foreach (var obj in data.Revenue)
    Series.Add(new PieSeries() { Title = obj.Year.ToString(), Values = new ChartValues { obj.Earning }, DataLabels = true, LabelPoint = labelPoint });

    pieChart1.Series = Series;
    I Am having error In data.Revenue in foreach

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      I think you miss something. please check your code again. thank you !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

    • @DanielHerreraVlogs
      @DanielHerreraVlogs 9 หลายเดือนก่อน

      You put " { obj.Earning }"
      When it should be { obj.Total }
      Assuming you followed the tutorial when he created a Column named 'Total' after the primary key 'Year'

  • @d2dyno
    @d2dyno 5 ปีที่แล้ว

    Could You make tutorial how to make combobox in listview?

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      OK. Thank you for your suggestion

    • @d2dyno
      @d2dyno 5 ปีที่แล้ว

      @@foxlearn 😀

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @pacesibiya305
    @pacesibiya305 5 ปีที่แล้ว

    Watching it in 2019 👍👍

    • @foxlearn
      @foxlearn  5 ปีที่แล้ว

      Thank you !

  • @benjy1221
    @benjy1221 6 ปีที่แล้ว

    Can you make a Video About how to Code a simple teamspeak 3 Client?

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      OK. Let me try to research !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @Ahmad_Hamdy_Hamdeen
    @Ahmad_Hamdy_Hamdeen 6 ปีที่แล้ว +1

    Many thanks

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว +1

      You're welcome. Thank you !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @patriciaspagnolo1077
    @patriciaspagnolo1077 3 หลายเดือนก่อน

    Can't learn with music in the background. It's a bad combination trying to listen to the presenter and having music at the same time.

  • @kamranmz
    @kamranmz 6 ปีที่แล้ว

    please make video about Chatbot in Asp.NET pleaaaaase

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      OK. Thank you for your suggestion. I'll try to research

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @immanuelsuleiman7550
    @immanuelsuleiman7550 6 ปีที่แล้ว

    Pretty fucking cool

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you !

  • @alirezaabedi1885
    @alirezaabedi1885 6 ปีที่แล้ว

    niicee

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you so much !

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

      foreach (var obj in data.Product)
      my data is underlined red, any reasons why

  • @killingstaryt6925
    @killingstaryt6925 6 ปีที่แล้ว +1

    Thx

    • @foxlearn
      @foxlearn  6 ปีที่แล้ว

      Thank you !

  • @JannatRocks
    @JannatRocks 5 หลายเดือนก่อน

    using LiveCharts;
    using LiveCharts.Wpf;
    using System;
    using System.Collections.Generic;
    using System.Linq;
    using System.Windows.Forms;
    namespace live_chart
    {
    public partial class Form1 : Form
    {
    public Form1()
    {
    InitializeComponent();
    }
    Func labelPoint = chartpoint => string.Format("{0} ({1:P})", chartpoint.Y, chartpoint.Participation);
    private void pieChart1_ChildChanged(object sender, System.Windows.Forms.Integration.ChildChangedEventArgs e)
    {
    // This event can be used for handling changes in the chart's child elements if needed
    }
    private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
    {
    // This event can be used for handling cell content click events in the DataGridView if needed
    }
    private void button1_Click(object sender, EventArgs e)
    {
    SeriesCollection series = new SeriesCollection();
    // Assuming data.Revenue is a collection of objects with Year and Total properties
    foreach (var obj in data.Revenue)
    {
    // Convert obj.Total to int before adding it to the chart values
    int totalValue;
    if (int.TryParse(obj.Total, out totalValue))
    {
    series.Add(new PieSeries
    {
    Title = obj.Year.ToString(),
    Values = new ChartValues { totalValue },
    DataLabels = true,
    LabelPoint = labelPoint
    });
    }
    else
    {
    // Handle the case where obj.Total is not a valid integer
    MessageBox.Show($"Invalid total value: {obj.Total}");
    }
    }
    pieChart1.Series = series;
    }
    private void Form1_Load(object sender, EventArgs e)
    {
    pieChart1.LegendLocation = LegendLocation.Bottom;
    }
    }
    }
    use this code